Page MenuHomePhabricator

p2p: avoid calculating onion address checksum when version is not 3
ClosedPublic

Authored by PiRK on Dec 23 2021, 09:21.

Details

Summary

There is no need to calculate the full checksum for an Tor v3 onion address if the version byte is not the expected one.

This is a backport of core#20405

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable