Expand description
Provides abstractions and commonly used types for p2p.
§Feature Flags
test-utils
: Export utilities for testing
Re-exports§
pub use bodies::client::BodiesClient;
pub use headers::client::HeadersClient;
Modules§
- Traits for implementing P2P block body clients.
- Shared abstractions for downloader implementations.
- A downloader that combines two different downloaders/client implementations. Support for different download types.
- Error types broadly used by p2p interfaces for any operation which may produce an error when interacting with the network implementation
- An implementation that uses headers and bodies traits to download full blocks
- Traits for implementing P2P Header Clients. Also includes implementations of a Linear and a Parallel downloader generic over the
Consensus
andHeadersClient
. - Priority enum for
BlockHeader
andBlockBody
requests - 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§
- Helper trait that unifies network behaviour needed for fetching blocks.
- The
BlockClient
providing Ethereum block parts.