Crate reth_network_p2p

Source
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§

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 Consensus and HeadersClient.
priority
Priority enum for BlockHeader and BlockBody requests
sync
Syncing related traits. Traits used when interacting with the sync status of the network.
test_utilstest-utils
Common test helpers for mocking out Consensus, Downloaders and Header Clients.

Traits§

BlockClient
Helper trait that unifies network behaviour needed for fetching entire blocks.
EthBlockClient
The BlockClient providing Ethereum block parts.