Function bitcoinnode_interface::select_node_to_evict
source · pub fn select_node_to_evict(
eviction_candidates: Vec<NodeEvictionCandidate>
) -> Option<NodeId>
Expand description
| Select an inbound peer to evict after | filtering out (protecting) peers having | distinct, difficult-to-forge characteristics. | The protection logic picks out fixed | numbers of desirable peers per various | criteria, followed by (mostly) ratios | of desirable or disadvantaged peers. | If any eviction candidates remain, | the selection logic chooses a peer to | evict. |