aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPatrick Strateman <patrick.strateman@gmail.com>2015-08-25 16:31:13 -0700
committerPatrick Strateman <patrick.strateman@gmail.com>2015-08-25 16:31:13 -0700
commit000c18aaceeebdcaf65508fcdc3d00397971dcae (patch)
treefd59febebcce3aa0ba7cb550aa5e5765b782e264 /src/net.cpp
parentfed30940ef22f242b9dada2dc4f7c5348faf8922 (diff)
downloadbitcoin-000c18aaceeebdcaf65508fcdc3d00397971dcae.tar.xz
Fix comment
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index e1b0e83e99..d266b2f21f 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -891,7 +891,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());