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§

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 and HeadersClient.
  • Priority enum for BlockHeader and BlockBody requests
  • 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§