pub struct ChiaPeersAddParams {
pub ip: String,
}Expand description
control.chiaPeers.add params — the Chia full node to start TRUSTING.
Trust is the whole point of this call and it is not free: a trusted peer is exempted from the corroboration this node otherwise requires (NC-12 — dialled peers are untrusted, and agreement across several concurrently-queried peers is what makes a chain read safe). An implementation MUST tell the person that before it writes the entry.
The trust NC-12 authorises is the operator declaring a node THEIR OWN. That is what justifies the unbounded authority the entry carries, and it does not extend to a node somebody else runs.
Fields§
§ip: StringThe peer’s IP address, canonical per canonical_peer_ip — a bare literal, no brackets,
no port. The standard full-node port is assumed (the Sage add_peer request shape carries
no port either).
Trait Implementations§
Source§impl Clone for ChiaPeersAddParams
impl Clone for ChiaPeersAddParams
Source§fn clone(&self) -> ChiaPeersAddParams
fn clone(&self) -> ChiaPeersAddParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more