Original BIP: https://github.com/bitcoin/bips/blob/master/bip-0155.mediawiki Followup discussions after the BIP was merged: https://github.com/bitcoin/bips/pull/766
This rough WIP PR aims to allow propagating addresses with addrv2 messages, and signaling support for addrv2 messages with sendaddrv2 message.
The commits are structured such that every single commit should compile and pass tests.
TODO:
- Wayyyyyyy more tests.
Things I'd like feedback on:
- What would be the best way to split up https://github.com/bitcoin/bitcoin/commit/e6009922077ce330bc76b82b9c3aa1e813e40356? I've tried to split it up in multiple ways but every time I attempt to do it, it just increases the total diff.
- In https://github.com/bitcoin/bitcoin/commit/fb78590939ff2d8c008cfd68f2f7df816389ac01, we introduce
CJDNSas a new supported network.CJDNSaddresses are simple IPv6 addresses under a certain prefix, - In https://github.com/bitcoin/bitcoin/commit/e10f8bfcaec44cf1e7b73c390225b80644e8367f, I'm wondering if there are better ways of structuring the code for ignoring single
addrentries, and the entire message.
Things that surprised me:
addrMewas deprecated and no one seemed to remember: https://github.com/bitcoin/bips/pull/766#issuecomment-524444473