Expand description
Reth interface definitions and commonly used types for the reth-network crate.
Provides abstractions for the reth-network crate.
§Feature Flags
serde
(default): Enable serde support
Re-exports§
pub use downloaders::BlockDownloaderProvider;
pub use error::NetworkError;
pub use events::DiscoveredEvent;
pub use events::DiscoveryEvent;
pub use events::NetworkEvent;
pub use events::NetworkEventListenerProvider;
pub use events::PeerRequest;
pub use events::PeerRequestSender;
Modules§
- API related to syncing blocks.
- Network Error
- API related to listening for network events.
- Implementation of network traits for that does nothing. A network implementation that does nothing.
- API for integration testing network components.
Structs§
- Represents a short summary of the
eth
sub-protocol metadata known about the host peer. - The status of the network being ran by the local node.
- Info about an active peer session.
Enums§
- The direction of the connection.
- Represents the kind of peer
- Various kinds of reputation changes.
Traits§
- Helper trait that unifies network behaviour needed for fetching blocks.
- Helper trait that unifies network API needed to launch node.
- Provides general purpose information about the network.
- Provides an API for managing the peers of the network.
- Provides general purpose information about Peers in the network.
Type Aliases§
- The
PeerId
type. - The type that tracks the reputation score.