Skip to content

Commit 000c18a

Browse files
committed
Fix comment
1 parent fed3094 commit 000c18a

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
@@ -891,7 +891,7 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
891891

892892
if (vEvictionCandidates.empty()) return false;
893893

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

0 commit comments

Comments
 (0)