mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make NodeEvent generic over NodePrimitives (#13534)
This commit is contained in:
@ -24,6 +24,7 @@ use reth_network_api::NetworkInfo;
|
||||
use reth_network_p2p::{headers::client::HeadersClient, EthBlockClient};
|
||||
use reth_node_api::NodeTypesWithDBAdapter;
|
||||
use reth_node_ethereum::EthExecutorProvider;
|
||||
use reth_node_events::node::NodeEvent;
|
||||
use reth_provider::{
|
||||
providers::ProviderNodeTypes, ChainSpecProvider, ProviderFactory, StageCheckpointReader,
|
||||
};
|
||||
@ -211,7 +212,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
|
||||
reth_node_events::node::handle_events(
|
||||
Some(Box::new(network)),
|
||||
latest_block_number,
|
||||
pipeline.events().map(Into::into),
|
||||
pipeline.events().map(Into::<NodeEvent<N::Primitives>>::into),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user