Revives #19860.
In order to make sure that our persistent outbound slots belong to different netgroups, distinct net groups of our peers are added to setConnected
. We’d only open a persistent outbound connection to peers which have a different netgroup compared to those netgroups present in setConnected
.
behaviour on master
we open persistent outbound connections to peers which have different netgroups compared to outbound full relay, block relay, addrfetch and feeler connection peers.
behaviour on PR
netgroup diversity is based on outbound full relay, block relay and manual connection peers.
rationale
- addrfetch and feeler connections are short lived connections and shouldn’t affect how we select outbound peers from addrman.
- manual connections are like regular connections when viewed from addrman’s netgroup diversity point of view and should affect how we select outbound peers from addrman