aboutsummaryrefslogtreecommitdiff
path: root/src/test/net_peer_eviction_tests.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-06-19 17:07:01 +0200
committerJon Atack <jon@atack.com>2021-07-08 12:28:40 +0200
commitb1d905c225e87a4a289c0cd3593c6c21cea3fba7 (patch)
tree1e351bba3f84d5ca0f8f795304da3a44fe29abb7 /src/test/net_peer_eviction_tests.cpp
parentc9e8d8f9b168dec2bc7b845da38449e96708cf8e (diff)
p2p: earlier continuation when no remaining eviction candidates
in ProtectEvictionCandidatesByRatio(). With this change, `if (n.count == 0) continue;` will be true if a network had candidates protected in the first iterations and has no candidates remaining to be protected in later iterations. Co-authored-by: Jon Atack <jon@atack.com>
Diffstat (limited to 'src/test/net_peer_eviction_tests.cpp')
0 files changed, 0 insertions, 0 deletions