Expand description
Provides abstractions and commonly used types for p2p.
§Feature Flags
test-utils: Export utilities for testing
Re-exports§
pub use full_block::FullBlockClient;pub use full_block::NoopFullBlockClient;pub use bodies::client::BodiesClient;pub use headers::client::HeadersClient;
Modules§
- bodies
- Traits for implementing P2P block body clients.
- download
- Shared abstractions for downloader implementations.
- either
- A downloader that combines two different downloaders/client implementations. Support for different download types.
- error
- Error types broadly used by p2p interfaces for any operation which may produce an error when interacting with the network implementation
- full_
block - An implementation that uses headers and bodies traits to download full blocks
- headers
- Traits for implementing P2P Header Clients. Also includes implementations
of a Linear and a Parallel downloader generic over the
ConsensusandHeadersClient. - priority
- Priority enum for
BlockHeaderandBlockBodyrequests - snap
- Snap related traits.
- sync
- Syncing related traits. Traits used when interacting with the sync status of the network.
- test_
utils test-utils - Common test helpers for mocking out Consensus, Downloaders and Header Clients.
Traits§
- Block
Client - Helper trait that unifies network behaviour needed for fetching entire blocks.
- EthBlock
Client - The
BlockClientproviding Ethereum block parts.