mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Make it easier to reason about node eviction by removing unused NodeEvictionCandidate::addr (CAddress)
This commit is contained in:
parent
88776c2926
commit
f1f433e8ca
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user