We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18af800 commit 7f030feCopy full SHA for 7f030fe
src/net.cpp
@@ -1005,7 +1005,7 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
1005
1006
if (vEvictionCandidates.empty()) return false;
1007
1008
- // Protect the 64 nodes which have been connected the longest.
+ // Protect the half of the remaining nodes which have been connected the longest.
1009
// This replicates the existing implicit behavior.
1010
std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), ReverseCompareNodeTimeConnected);
1011
vEvictionCandidates.erase(vEvictionCandidates.end() - static_cast<int>(vEvictionCandidates.size() / 2), vEvictionCandidates.end());
0 commit comments