5 #ifndef BITCOIN_NODE_EVICTION_H 6 #define BITCOIN_NODE_EVICTION_H 42 [[nodiscard]] std::optional<NodeId>
SelectNodeToEvict(std::vector<NodeEvictionCandidate>&& vEvictionCandidates);
69 #endif // BITCOIN_NODE_EVICTION_H std::chrono::microseconds m_min_ping_time
std::chrono::seconds m_last_tx_time
std::chrono::seconds m_connected
std::optional< NodeId > SelectNodeToEvict(std::vector< NodeEvictionCandidate > &&vEvictionCandidates)
Select an inbound peer to evict after filtering out (protecting) peers having distinct, difficult-to-forge characteristics.
void ProtectEvictionCandidatesByRatio(std::vector< NodeEvictionCandidate > &vEvictionCandidates)
Protect desirable or disadvantaged inbound peers from eviction by ratio.
std::chrono::seconds m_last_block_time
ConnectionType
Different types of connections to a peer.
ConnectionType m_conn_type