aboutsummaryrefslogtreecommitdiff
path: root/build_msvc
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-04-10 16:11:03 +0200
committerJon Atack <jon@atack.com>2021-06-14 14:01:35 +0200
commitce02dd1ef1f7f54f33780b32f195d31c1cc87318 (patch)
tree45d2262216da1f6858f993ba06d68740483f1b40 /build_msvc
parent70bbc62711643ec57cce620f9f7a0e1fe5fb6346 (diff)
p2p: extend inbound eviction protection by network to I2P peers
This commit extends our inbound eviction protection to I2P peers to favorise the diversity of peer connections, as peers connected through the I2P network are otherwise disadvantaged by our eviction criteria for their higher latency (higher min ping times) relative to IPv4 and IPv6 peers, as well as relative to Tor onion peers. The `networks` array is order-dependent in the case of a tie in candidate counts between networks (earlier array members receive priority in the case of a tie). Therefore, we place I2P candidates before localhost and onion ones in terms of opportunity to recover unused remaining protected slots from the previous iteration, guesstimating that most nodes allowing both onion and I2P inbounds will have more onion peers, followed by localhost, then I2P, as I2P support is only being added in the upcoming v22.0 release.
Diffstat (limited to 'build_msvc')
0 files changed, 0 insertions, 0 deletions