chore(net): move reth_network::BlockDownloaderProvider to reth-network-api (#10003)

This commit is contained in:
Emilia Hane
2024-08-03 15:42:44 +02:00
committed by GitHub
parent c2926de326
commit f3e79df300
7 changed files with 45 additions and 20 deletions

View File

@ -47,4 +47,11 @@ pub mod test_utils;
pub mod reputation;
pub use bodies::client::BodiesClient;
pub use headers::client::HeadersClient;
pub use reputation::{Reputation, ReputationChange, ReputationChangeKind, ReputationChangeWeights};
/// Helper trait that unifies network behaviour needed for fetching blocks.
pub trait BlockClient: HeadersClient + BodiesClient + Unpin + Clone {}
impl<T> BlockClient for T where T: HeadersClient + BodiesClient + Unpin + Clone {}