Expand description

Networking code to connect to other peers and exchange block, transactions, etc.

Re-exports

pub use crate::types::Capabilities;
pub use crate::types::ChainAdapter;
pub use crate::types::Direction;
pub use crate::types::Error;
pub use crate::types::P2PConfig;
pub use crate::types::PeerAddr;
pub use crate::types::PeerInfo;
pub use crate::types::ReasonForBan;
pub use crate::types::Seeding;
pub use crate::types::TxHashSetRead;
pub use crate::types::MAX_BLOCK_HEADERS;
pub use crate::types::MAX_LOCATORS;
pub use crate::types::MAX_PEER_ADDRS;

Modules

Message types that transit over the network and related serialization code.

Structs

A no-op network adapter used for testing.

Data stored for any given peer we’ve encountered.

P2P server implementation, handling bootstrapping to find and connect to peers, receiving connections from other peers and keep track of all of them.

Enums

Constants