aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-11-04 12:22:06 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-11-04 12:22:06 +0000
commitf1f433e8ca014f69925e8d5487877e06ca784ec8 (patch)
tree9c3745872fa949b5654a1f4d460f38f798d1bbe1
parent88776c2926061482ab551b0cf5c408fc1bc39ac3 (diff)
Make it easier to reason about node eviction by removing unused NodeEvictionCandidate::addr (CAddress)
-rw-r--r--src/net.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 468358a94d..cf987b6995 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -863,7 +863,6 @@ struct NodeEvictionCandidate
bool fRelevantServices;
bool fRelayTxes;
bool fBloomFilter;
- CAddress addr;
uint64_t nKeyedNetGroup;
bool prefer_evict;
bool m_is_local;
@@ -955,7 +954,7 @@ bool CConnman::AttemptToEvictConnection()
NodeEvictionCandidate candidate = {node->GetId(), node->nTimeConnected, node->nMinPingUsecTime,
node->nLastBlockTime, node->nLastTXTime,
HasAllDesirableServiceFlags(node->nServices),
- peer_relay_txes, peer_filter_not_null, node->addr, node->nKeyedNetGroup,
+ peer_relay_txes, peer_filter_not_null, node->nKeyedNetGroup,
node->m_prefer_evict, node->addr.IsLocal()};
vEvictionCandidates.push_back(candidate);
}