If we are at capacity for inbound tx-relay peers, attempt to evict one.
Declared in <net.h>
[[requires_capability(0x7fbc935fa018), requires_capability(0x7fbc93360c28), requires_capability(0x7fbc8742a0a8), requires_capability(0x7fbc9745fc88), requires_capability(0x7fbc8e97bdc8), requires_capability(0x7fbc859fd138), requires_capability(0x7fbc90e3a598), requires_capability(0x7fbc8ec356c8), requires_capability(0x7fbc92aedb88), requires_capability(0x7fbc7cdaf3f8), requires_capability(0x7fbc9fc8b598)]]
bool
EvictTxPeerIfFull(std::optional<NodeId> protect_peer = std::nullopt);
bool Returns true if successful (either there is no need for eviction, or a peer was evicted). Returns false, if we are full but couldn't find a peer to evict (all eligible peers are protected) so that the caller can deal with this.
| Name | Description |
|---|---|
| protect_peer [in] | NodeId of a peer we want to protect |