Merge bitcoin/bitcoin#22211: net: relay I2P addresses even if not reachable (by us)
pull/826/head7593b06bd1
test: ensure I2P addresses are relayed (Vasil Dimov)e7468139a1
test: make CAddress in functional tests comparable (Vasil Dimov)33e211d2a4
test: implement ser/unser of I2P addresses in functional tests (Vasil Dimov)86742811ce
test: use NODE_* constants instead of magic numbers (Vasil Dimov)ba45f02708
net: relay I2P addresses even if not reachable (by us) (Vasil Dimov) Pull request description: Nodes that can reach the I2P network (have set `-i2psam=`) will relay I2P addresses even without this patch. However, nodes that can't reach the I2P network will not. This was done as a precaution in https://github.com/bitcoin/bitcoin/pull/20119 before anybody could connect to I2P because then, for sure, it would have been useless. Now, however, we have I2P support and a bunch of I2P nodes, so get all nodes on the network to relay I2P addresses to help with propagation, similarly to what we do with Tor addresses. ACKs for top commit: jonatack: ACK7593b06bd1
naumenkogs: ACK7593b06bd1
. laanwj: Code review ACK7593b06bd1
kristapsk: ACK7593b06bd1
. Code looks correct, tested that functional test suite passes and also that `test/functional/p2p_addrv2_replay.py` fails if I undo changes in `IsRelayable()`. Tree-SHA512: c9feec4a9546cc06bc2fec6d74f999a3c0abd3d15b7c421c21fcf2d610eb94611489e33d61bdcd5a4f42041a6d84aa892f7ae293b0d4f755309a8560b113b735
commit
a88fa1a555
Loading…
Reference in new issue