diff options
author | Patrick Strateman <patrick.strateman@gmail.com> | 2015-08-25 16:31:13 -0700 |
---|---|---|
committer | Patrick Strateman <patrick.strateman@gmail.com> | 2015-08-25 16:31:13 -0700 |
commit | 000c18aaceeebdcaf65508fcdc3d00397971dcae (patch) | |
tree | fd59febebcce3aa0ba7cb550aa5e5765b782e264 | |
parent | fed30940ef22f242b9dada2dc4f7c5348faf8922 (diff) | |
download | bitcoin-000c18aaceeebdcaf65508fcdc3d00397971dcae.tar.xz |
Fix comment
-rw-r--r-- | src/net.cpp | 2 |
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()); |