diff --git a/crates/blockchain-tree/src/externals.rs b/crates/blockchain-tree/src/externals.rs index b7acbf5f97fc0..acf95c890131b 100644 --- a/crates/blockchain-tree/src/externals.rs +++ b/crates/blockchain-tree/src/externals.rs @@ -29,7 +29,11 @@ pub struct TreeExternals { impl TreeExternals { /// Create new tree externals. - pub fn new(provider_factory: ProviderFactory, consensus: C, executor_factory: E) -> Self { + pub const fn new( + provider_factory: ProviderFactory, + consensus: C, + executor_factory: E, + ) -> Self { Self { provider_factory, consensus, executor_factory } } } diff --git a/crates/node/builder/src/launch/mod.rs b/crates/node/builder/src/launch/mod.rs index b7cc7fce30d64..c02d6eb7c25ba 100644 --- a/crates/node/builder/src/launch/mod.rs +++ b/crates/node/builder/src/launch/mod.rs @@ -8,16 +8,14 @@ use crate::{ BuilderContext, NodeBuilderWithComponents, NodeHandle, }; use futures::{future, future::Either, stream, stream_select, StreamExt}; -use reth_auto_seal_consensus::AutoSealConsensus; use reth_beacon_consensus::{ hooks::{EngineHooks, PruneHook, StaticFileHook}, - BeaconConsensusEngine, EthBeaconConsensus, + BeaconConsensusEngine, }; use reth_blockchain_tree::{ noop::NoopBlockchainTree, BlockchainTree, BlockchainTreeConfig, ShareableBlockchainTree, TreeExternals, }; -use reth_consensus::Consensus; use reth_exex::{ExExContext, ExExHandle, ExExManager, ExExManagerHandle}; use reth_network::NetworkEvents; use reth_node_api::{FullNodeComponents, FullNodeTypes}; @@ -29,9 +27,6 @@ use reth_node_core::{ }; use reth_node_events::{cl::ConsensusLayerHealthEvents, node}; -#[cfg(feature = "optimism")] -use reth_optimism_consensus::OptimismBeaconConsensus; - use reth_primitives::format_ether; use reth_provider::{providers::BlockchainProvider, CanonStateSubscriptions}; use reth_rpc_engine_api::EngineApi; diff --git a/crates/stages/stages/src/stages/headers.rs b/crates/stages/stages/src/stages/headers.rs index 5ae5bcd519d51..898f7334ccb67 100644 --- a/crates/stages/stages/src/stages/headers.rs +++ b/crates/stages/stages/src/stages/headers.rs @@ -26,10 +26,7 @@ use reth_stages_api::{ BlockErrorKind, ExecInput, ExecOutput, Stage, StageError, UnwindInput, UnwindOutput, }; use reth_storage_errors::provider::ProviderError; -use std::{ - sync::Arc, - task::{ready, Context, Poll}, -}; +use std::task::{ready, Context, Poll}; use tracing::*; /// The headers stage.