mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 13:42:10 +02:00
cf0f2aeae0p2p: Assume v2transport for addresses from seeds (Martin Zumsande) Pull request description: gmaxwell noted in https://github.com/bitcoin/bitcoin/pull/30951#issuecomment-5035178818 that addresses loaded from dns seeds and fixed seeds are still assumed to be v1, so a new node won't use `v2transport` for the first few connections it makes. By now, the vast majority of reachable nodes (~80% according to https://bitnod.es/) in the network supports BIP324, and even if the optimistic guess would turn out to be wrong for a given node, we would just reconnect with v1. This would also be necessary for a v2-only option (#30951), but I think it makes sense to change the default regardless of that PR. Note that `-seednode` and `addr-fetch` connections already use `v2transport` by default. ACKs for top commit: w0xlt: ACKcf0f2aeae0sedited: ACKcf0f2aeae0willcl-ark: ACKcf0f2aeae0stratospher: tested ACKcf0f2aea. Tree-SHA512: 921dfcf56960f66c37346f0a4d07e8ad8aa617d4cd1c4db36474e8275c47d5eb70a34c32d1378cbcfce356348b12c36c8fedcdaee3c90c2c4963256857407db4