File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -965,13 +965,6 @@ static bool AttemptToEvictConnection() {
965
965
// Reduce to the network group with the most connections
966
966
vEvictionCandidates = std::move (mapAddrCounts[naMostConnections]);
967
967
968
- // Do not disconnect peers if there is only one unprotected connection from their network group.
969
- // This step excessively favors netgroup diversity, and should be removed once more protective criteria are established.
970
- if (vEvictionCandidates.size () <= 1 )
971
- // unless we prefer the new connection (for whitelisted peers)
972
- if (!fPreferNewConnection )
973
- return false ;
974
-
975
968
// Disconnect from the network group with the most connections
976
969
NodeId evicted = vEvictionCandidates.front ().id ;
977
970
LOCK (cs_vNodes);
You can’t perform that action at this time.
0 commit comments