Skip to content

Commit 7f030fe

Browse files
pstratemFuzzbawls
authored andcommitted
Fix comment
1 parent 18af800 commit 7f030fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
10051005

10061006
if (vEvictionCandidates.empty()) return false;
10071007

1008-
// Protect the 64 nodes which have been connected the longest.
1008+
// Protect the half of the remaining nodes which have been connected the longest.
10091009
// This replicates the existing implicit behavior.
10101010
std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), ReverseCompareNodeTimeConnected);
10111011
vEvictionCandidates.erase(vEvictionCandidates.end() - static_cast<int>(vEvictionCandidates.size() / 2), vEvictionCandidates.end());

0 commit comments

Comments
 (0)