pub struct ChiaPeersRemoveParams {
pub ip: String,
pub ban: bool,
}Expand description
control.chiaPeers.remove params — the Chia full node to stop trusting.
Fields§
§ip: StringThe peer’s IP address, canonical per canonical_peer_ip. Matching is by that canonical
form, so an address spelled differently from the stored entry still names the same peer.
ban: boolBan rather than forget: the peer is kept but excluded, so discovery cannot re-add it.
Absent means false, which merely forgets the entry.
A ban is EXACT-match on this one address — never a subnet — and it is local to this node,
with no effect on any other node’s peer set. It persists until removed, bounded by
MAX_BANNED_CHIA_PEERS, is enumerated by control.chiaPeers.list (banned: true), and
is cleared by calling remove again with ban: false. Clearing a ban that way grants no
trust: add also un-bans, but add confers the corroboration bypass, so it must not be
the only route back — an over-broad ban is not a reason to trust the peer it hit.
Every banned peer is one fewer source of agreement. NC-12 rests on several independently
chosen peers agreeing, so a caller that bans steadily shrinks the honest pool toward the
peers it chose; that is why banning is on the master-token tier
(ControlMethod::requires_master_token) and why the set is bounded and visible.
Trait Implementations§
Source§impl Clone for ChiaPeersRemoveParams
impl Clone for ChiaPeersRemoveParams
Source§fn clone(&self) -> ChiaPeersRemoveParams
fn clone(&self) -> ChiaPeersRemoveParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more