Skip to main content

Module peerbook

Module peerbook 

Source
Expand description

Bounded peer book: explicit routing hints, configured seeds and addresses learned from peers. Every entry is an untrusted hint, never chain evidence or a statement of record availability. Nothing here resolves names, dials or starts networking; the caller owns the directory, its lock and saves.

Structs§

BookEntry
One peer (or one not yet identified seed address). Addresses are stored without a terminal /p2p; the identity lives in peer_id once learned.
BookStats
Counts reported in overlay status. reached entries succeeded and have not failed since; reached_ever entries succeeded at least once.
PeerAddress
A syntactically validated routing hint with an explicit matching identity. Validation establishes neither reachability nor trust in the named peer.
PeerBook

Enums§

Origin
How a peer-book entry entered the book. Ordered by precedence: learning never downgrades an entry, and manual and seed entries are never evicted.