Skip to main content

Module peer_gossip

Module peer_gossip 

Source
Expand description

Peer gossip and explicit dialing. Gossiped addresses are untrusted routing hints; a dial proves only the remote transport identity, and the Peers probe that follows it only that the peer speaks this protocol on the same chain.

Structs§

ObservedAddrs
Public addresses outbound peers reported observing for this node. A candidate is confirmed only once WITNESSES distinct peers reported it.

Functions§

is_public
Globally routable IP, or a DNS name other than localhost. IPv4-mapped IPv6 addresses are judged as the IPv4 address they carry.
validate_dial
Dial targets: any direct address shape, or a circuit that names its target. Returns the named identity.
validate_gossip_address
Gossip carries only IP-literal addresses, direct or circuit, each with an optional /p2p: names come from operators (seeds, manual), never peers.