diff options
author | fanquake <fanquake@gmail.com> | 2020-11-17 13:56:11 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-11-17 13:56:22 +0800 |
commit | 7c0d412a74ba8d791e6b83b6aca82406f2158fc3 (patch) | |
tree | 764dafb081b7c352f6d41272657d9f1afb31dad0 /test/functional/data/wallets/high_minversion/wallet.dat | |
parent | c48e788246fcced78cb4eb1d4bd09cb41a9ff09b (diff) | |
parent | d355a302d9b7e4aaac04edaa0671ced3b3eaef45 (diff) | |
download | bitcoin-7c0d412a74ba8d791e6b83b6aca82406f2158fc3.tar.xz |
Merge #20405: p2p: avoid calculating onion address checksum when version is not 3
d355a302d9b7e4aaac04edaa0671ced3b3eaef45 Break circuit earlier (lontivero)
Pull request description:
Currently when parsing an onion v3 address the pubic key checksum is calculated in order to compare it with the received address checksum. However this step is not necessary if the address version byte is not 3, in which case the method can return with false immediately.
ACKs for top commit:
jonatack:
ACK d355a302d9b7e4aaac04edaa0671ced3b3eaef45
practicalswift:
ACK d355a302d9b7e4aaac04edaa0671ced3b3eaef45 -- patch looks correct
hebasto:
ACK d355a302d9b7e4aaac04edaa0671ced3b3eaef45, I have reviewed the code and it looks OK, I agree it can be merged.
sipa:
utACK d355a302d9b7e4aaac04edaa0671ced3b3eaef45
Tree-SHA512: 9e4506793b7f4a62ce8edc41a260a8c125ae81ed2f90cd850eb2a9214d323c446edc7586c7b0590dcbf3aed5be534718b77bb19c45b48f8f52553d32a3663a65
Diffstat (limited to 'test/functional/data/wallets/high_minversion/wallet.dat')
0 files changed, 0 insertions, 0 deletions