mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(reth-network-p2p): Replace HeadersClient + BodiesClient with BlockClient (#10058)
Co-authored-by: Skanda Bhat <bhat.skanda.m@gmail.com>
This commit is contained in:
@ -11,6 +11,7 @@ use reth_network_p2p::{
|
||||
bodies::client::BodiesClient,
|
||||
headers::client::HeadersClient,
|
||||
sync::{NetworkSyncUpdater, SyncState},
|
||||
BlockClient,
|
||||
};
|
||||
use reth_payload_builder::PayloadBuilderHandle;
|
||||
use reth_payload_primitives::{PayloadAttributes, PayloadBuilderAttributes};
|
||||
@ -171,7 +172,7 @@ type PendingForkchoiceUpdate<PayloadAttributes> =
|
||||
pub struct BeaconConsensusEngine<DB, BT, Client, EngineT>
|
||||
where
|
||||
DB: Database,
|
||||
Client: HeadersClient + BodiesClient,
|
||||
Client: BlockClient,
|
||||
BT: BlockchainTreeEngine
|
||||
+ BlockReader
|
||||
+ BlockIdReader
|
||||
|
||||
@ -11,6 +11,7 @@ use reth_network_p2p::{
|
||||
bodies::client::BodiesClient,
|
||||
full_block::{FetchFullBlockFuture, FetchFullBlockRangeFuture, FullBlockClient},
|
||||
headers::client::HeadersClient,
|
||||
BlockClient,
|
||||
};
|
||||
use reth_primitives::{BlockNumber, SealedBlock, B256};
|
||||
use reth_stages_api::{ControlFlow, Pipeline, PipelineError, PipelineTarget, PipelineWithResult};
|
||||
@ -35,7 +36,7 @@ use tracing::trace;
|
||||
pub(crate) struct EngineSyncController<DB, Client>
|
||||
where
|
||||
DB: Database,
|
||||
Client: HeadersClient + BodiesClient,
|
||||
Client: BlockClient,
|
||||
{
|
||||
/// A downloader that can download full blocks from the network.
|
||||
full_block_client: FullBlockClient<Client>,
|
||||
|
||||
Reference in New Issue
Block a user