If we are at capacity for inbound tx-relay peers, attempt to evict one.
Declared in <net.h>
[[requires_capability(0x7fd74b3b7088), requires_capability(0x7fd74af17cf8), requires_capability(0x7fd7574ec9a8), requires_capability(0x7fd74f4a7d88), requires_capability(0x7fd75f872078), requires_capability(0x7fd75930eef8), requires_capability(0x7fd753e60c38), requires_capability(0x7fd74d8902a8), requires_capability(0x7fd755d43f38), requires_capability(0x7fd7598a3e48), requires_capability(0x7fd74c8f6668)]]
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 |