We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed3094 commit 000c18aCopy full SHA for 000c18a
src/net.cpp
@@ -891,7 +891,7 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
891
892
if (vEvictionCandidates.empty()) return false;
893
894
- // Protect the 64 nodes which have been connected the longest.
+ // Protect the half of the remaining nodes which have been connected the longest.
895
// This replicates the existing implicit behavior.
896
std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), ReverseCompareNodeTimeConnected);
897
vEvictionCandidates.erase(vEvictionCandidates.end() - static_cast<int>(vEvictionCandidates.size() / 2), vEvictionCandidates.end());
0 commit comments