Simplify and clarify extra outbound peer counting

This commit is contained in:
Suhas Daftuar
2020-09-01 16:32:09 -04:00
parent 86f2007193
commit 91d61952a8
5 changed files with 9 additions and 9 deletions

View File

@@ -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