From 83ac7b5ddb6284acd489cdaa97aec63d49f976cd Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Mon, 5 Aug 2024 01:38:20 +0800 Subject: [PATCH] chore(reth): Replace HeadersClient + BodiesClient with BlockClient (#10067) --- bin/reth/src/commands/debug_cmd/execution.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reth/src/commands/debug_cmd/execution.rs b/bin/reth/src/commands/debug_cmd/execution.rs index 9df22664f04a..fe8ed21f16d7 100644 --- a/bin/reth/src/commands/debug_cmd/execution.rs +++ b/bin/reth/src/commands/debug_cmd/execution.rs @@ -19,7 +19,7 @@ use reth_downloaders::{ use reth_exex::ExExManagerHandle; use reth_network::{BlockDownloaderProvider, NetworkEvents, NetworkHandle}; use reth_network_api::NetworkInfo; -use reth_network_p2p::{bodies::client::BodiesClient, headers::client::HeadersClient}; +use reth_network_p2p::{headers::client::HeadersClient, BlockClient}; use reth_primitives::{BlockHashOrNumber, BlockNumber, B256}; use reth_provider::{ BlockExecutionWriter, ChainSpecProvider, ProviderFactory, StageCheckpointReader, @@ -67,7 +67,7 @@ impl Command { ) -> eyre::Result> where DB: Database + Unpin + Clone + 'static, - Client: HeadersClient + BodiesClient + Clone + 'static, + Client: BlockClient + 'static, { // building network downloaders using the fetch client let header_downloader = ReverseHeadersDownloaderBuilder::new(config.stages.headers)