pub struct ChiaPeerEntry {
pub ip: String,
pub port: u16,
pub peak_height: Option<u32>,
pub user_managed: bool,
pub banned: bool,
}Expand description
One tracked Chia full-node peer.
Fields§
§ip: StringThe peer’s IP address, in the canonical form defined by
crate::params::canonical_peer_ip — a bare literal, never bracketed and never carrying a
port.
port: u16The peer’s port (the standard full-node port unless the entry says otherwise).
peak_height: Option<u32>The peak height this peer last reported, or null where the node has NO telemetry for it
yet.
null means UNOBSERVABLE, never zero — the convention control.peerCounts and
control.wallet.peak already use, and it matters more here: this is the one signal an
operator has for judging whether a peer they trust WITHOUT corroboration is current or
stuck, and a peer nobody has polled must not read as a peer stalled at genesis.
A reported height is that peer’s CLAIM, never a fact this node verified — never a fabricated height, and never to be aggregated into a chain position (NC-12: a maximum over claimed peaks is whatever the most dishonest peer says).
user_managed: boolTRUE where a person added this peer by hand, which is exactly the set that is trusted
WITHOUT corroboration. Discovered peers are false and stay subject to agreement.
banned: boolTRUE where this entry is BANNED — kept so discovery cannot re-add it, and excluded from every chain read.
Banned entries appear in this list because it is the ONLY enumeration of the banned set, and a blocklist a person cannot read is a blocklist they cannot correct.
Trait Implementations§
Source§impl Clone for ChiaPeerEntry
impl Clone for ChiaPeerEntry
Source§fn clone(&self) -> ChiaPeerEntry
fn clone(&self) -> ChiaPeerEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more