Module peer

Source
Expand description

Peer connection handling.

Re-exports§

pub use client::tests::ClientTestHarness;
pub use client::Client;
pub use connection::Connection;
pub use connector::Connector;
pub use connector::OutboundConnectorRequest;
pub use error::ErrorSlot;
pub use error::HandshakeError;
pub use error::PeerError;
pub use error::SharedPeerError;
pub use handshake::ConnectedAddr;
pub use handshake::ConnectionInfo;
pub use handshake::Handshake;
pub use handshake::HandshakeRequest;
pub use load_tracked_client::LoadTrackedClient;
pub use minimum_peer_version::MinimumPeerVersion;
pub use priority::address_is_valid_for_inbound_listeners;
pub use priority::address_is_valid_for_outbound_connections;
pub use priority::AttributePreference;
pub use priority::PeerPreference;

Modules§

client 🔒
Handles outbound requests from our node to the network.
connection 🔒
Zebra’s per-peer connection state machine.
connector 🔒
Wrapper around handshake logic that also opens a TCP connection.
error 🔒
Peer-related errors.
handshake 🔒
Initial Handshakes with Zebra peers over a PeerTransport.
load_tracked_client 🔒
A peer connection service wrapper type to handle load tracking and provide access to the reported protocol version.
minimum_peer_version 🔒
Watches for chain tip height updates to determine the minimum supported peer protocol version.
priority 🔒
Prioritizing outbound peer connections based on peer attributes.