Browse Source

Fix comment

pull/145/head
Patrick Strateman 9 years ago
committed by Taylor Hornby
parent
commit
b63e75ae12
  1. 2
      src/net.cpp

2
src/net.cpp

@ -787,7 +787,7 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
if (vEvictionCandidates.empty()) return false;
// Protect the 64 nodes which have been connected the longest.
// Protect the half of the remaining nodes which have been connected the longest.
// This replicates the existing implicit behavior.
std::sort(vEvictionCandidates.begin(), vEvictionCandidates.end(), ReverseCompareNodeTimeConnected);
vEvictionCandidates.erase(vEvictionCandidates.end() - static_cast<int>(vEvictionCandidates.size() / 2), vEvictionCandidates.end());

Loading…
Cancel
Save