aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2020-09-01 16:32:09 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2020-12-10 08:41:57 -0500
commit91d61952a82af3e8887e8ae532ecc19d87fe9073 (patch)
tree7595a09515d4ec79e518b6536106967552fa6f29 /src/net_processing.cpp
parent86f20071931b803b5f26ed8f685d98d4919fb7a7 (diff)
downloadbitcoin-91d61952a82af3e8887e8ae532ecc19d87fe9073.tar.xz
Simplify and clarify extra outbound peer counting
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index cdddde8540..243ac6a34b 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -3910,7 +3910,7 @@ void PeerManager::ConsiderEviction(CNode& pto, int64_t time_in_seconds)
void PeerManager::EvictExtraOutboundPeers(int64_t time_in_seconds)
{
// Check whether we have too many outbound peers
- int extra_peers = m_connman.GetExtraOutboundCount();
+ int extra_peers = m_connman.GetExtraFullOutboundCount();
if (extra_peers > 0) {
// If we have more outbound peers than we target, disconnect one.
// Pick the outbound peer that least recently announced