Skip to content

Commit f1f433e

Browse files
Make it easier to reason about node eviction by removing unused NodeEvictionCandidate::addr (CAddress)
1 parent 88776c2 commit f1f433e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/net.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ struct NodeEvictionCandidate
863863
bool fRelevantServices;
864864
bool fRelayTxes;
865865
bool fBloomFilter;
866-
CAddress addr;
867866
uint64_t nKeyedNetGroup;
868867
bool prefer_evict;
869868
bool m_is_local;
@@ -955,7 +954,7 @@ bool CConnman::AttemptToEvictConnection()
955954
NodeEvictionCandidate candidate = {node->GetId(), node->nTimeConnected, node->nMinPingUsecTime,
956955
node->nLastBlockTime, node->nLastTXTime,
957956
HasAllDesirableServiceFlags(node->nServices),
958-
peer_relay_txes, peer_filter_not_null, node->addr, node->nKeyedNetGroup,
957+
peer_relay_txes, peer_filter_not_null, node->nKeyedNetGroup,
959958
node->m_prefer_evict, node->addr.IsLocal()};
960959
vEvictionCandidates.push_back(candidate);
961960
}

0 commit comments

Comments
 (0)