@@ -15,7 +15,7 @@ pub use reth_engine_tree::{
1515 engine:: EngineApiEvent ,
1616} ;
1717use reth_ethereum_primitives:: EthPrimitives ;
18- use reth_evm:: { execute :: BlockExecutorProvider , ConfigureEvm } ;
18+ use reth_evm:: ConfigureEvm ;
1919use reth_network_p2p:: BlockClient ;
2020use reth_node_types:: { BlockTy , NodeTypes } ;
2121use reth_payload_builder:: PayloadBuilderHandle ;
@@ -27,7 +27,6 @@ use reth_prune::PrunerWithFactory;
2727use reth_stages_api:: { MetricEventsSender , Pipeline } ;
2828use reth_tasks:: TaskSpawner ;
2929use std:: {
30- marker:: PhantomData ,
3130 pin:: Pin ,
3231 sync:: Arc ,
3332 task:: { Context , Poll } ,
@@ -55,27 +54,23 @@ type EngineServiceType<N, Client> = ChainOrchestrator<
5554// TODO(mattsse): remove hidde once fixed : <https://github.com/rust-lang/rust/issues/135363>
5655// otherwise rustdoc fails to resolve the alias
5756#[ doc( hidden) ]
58- pub struct EngineService < N , Client , E >
57+ pub struct EngineService < N , Client >
5958where
6059 N : ProviderNodeTypes ,
6160 Client : BlockClient < Block = BlockTy < N > > + ' static ,
62- E : BlockExecutorProvider + ' static ,
6361{
6462 orchestrator : EngineServiceType < N , Client > ,
65- _marker : PhantomData < E > ,
6663}
6764
68- impl < N , Client , E > EngineService < N , Client , E >
65+ impl < N , Client > EngineService < N , Client >
6966where
7067 N : ProviderNodeTypes ,
7168 Client : BlockClient < Block = BlockTy < N > > + ' static ,
72- E : BlockExecutorProvider < Primitives = N :: Primitives > + ' static ,
7369{
7470 /// Constructor for `EngineService`.
7571 #[ expect( clippy:: too_many_arguments) ]
7672 pub fn new < V , C > (
7773 consensus : Arc < dyn FullConsensus < N :: Primitives , Error = ConsensusError > > ,
78- executor_factory : E ,
7974 chain_spec : Arc < N :: ChainSpec > ,
8075 client : Client ,
8176 incoming_requests : EngineMessageStream < N :: Payload > ,
@@ -105,30 +100,25 @@ where
105100
106101 let canonical_in_memory_state = blockchain_db. canonical_in_memory_state ( ) ;
107102
108- let ( to_tree_tx, from_tree) =
109- EngineApiTreeHandler :: < N :: Primitives , _ , _ , _ , _ , _ > :: spawn_new (
110- blockchain_db,
111- executor_factory,
112- consensus,
113- payload_validator,
114- persistence_handle,
115- payload_builder,
116- canonical_in_memory_state,
117- tree_config,
118- invalid_block_hook,
119- engine_kind,
120- evm_config,
121- ) ;
103+ let ( to_tree_tx, from_tree) = EngineApiTreeHandler :: < N :: Primitives , _ , _ , _ , _ > :: spawn_new (
104+ blockchain_db,
105+ consensus,
106+ payload_validator,
107+ persistence_handle,
108+ payload_builder,
109+ canonical_in_memory_state,
110+ tree_config,
111+ invalid_block_hook,
112+ engine_kind,
113+ evm_config,
114+ ) ;
122115
123116 let engine_handler = EngineApiRequestHandler :: new ( to_tree_tx, from_tree) ;
124117 let handler = EngineHandler :: new ( engine_handler, downloader, incoming_requests) ;
125118
126119 let backfill_sync = PipelineSync :: new ( pipeline, pipeline_task_spawner) ;
127120
128- Self {
129- orchestrator : ChainOrchestrator :: new ( handler, backfill_sync) ,
130- _marker : Default :: default ( ) ,
131- }
121+ Self { orchestrator : ChainOrchestrator :: new ( handler, backfill_sync) }
132122 }
133123
134124 /// Returns a mutable reference to the orchestrator.
@@ -137,11 +127,10 @@ where
137127 }
138128}
139129
140- impl < N , Client , E > Stream for EngineService < N , Client , E >
130+ impl < N , Client > Stream for EngineService < N , Client >
141131where
142132 N : ProviderNodeTypes ,
143133 Client : BlockClient < Block = BlockTy < N > > + ' static ,
144- E : BlockExecutorProvider + ' static ,
145134{
146135 type Item = ChainEvent < BeaconConsensusEngineEvent < N :: Primitives > > ;
147136
@@ -164,7 +153,7 @@ mod tests {
164153 use reth_engine_tree:: { test_utils:: TestPipelineBuilder , tree:: NoopInvalidBlockHook } ;
165154 use reth_ethereum_consensus:: EthBeaconConsensus ;
166155 use reth_ethereum_engine_primitives:: EthEngineTypes ;
167- use reth_evm_ethereum:: { execute :: EthExecutorProvider , EthEvmConfig } ;
156+ use reth_evm_ethereum:: EthEvmConfig ;
168157 use reth_exex_types:: FinishedExExHeight ;
169158 use reth_network_p2p:: test_utils:: TestFullBlockClient ;
170159 use reth_node_ethereum:: EthereumEngineValidator ;
@@ -198,7 +187,6 @@ mod tests {
198187 let pipeline_task_spawner = Box :: < TokioTaskExecutor > :: default ( ) ;
199188 let provider_factory = create_test_provider_factory_with_chain_spec ( chain_spec. clone ( ) ) ;
200189
201- let executor_factory = EthExecutorProvider :: ethereum ( chain_spec. clone ( ) ) ;
202190 let blockchain_db =
203191 BlockchainProvider :: with_latest ( provider_factory. clone ( ) , SealedHeader :: default ( ) )
204192 . unwrap ( ) ;
@@ -211,7 +199,6 @@ mod tests {
211199 let ( tx, _rx) = unbounded_channel ( ) ;
212200 let _eth_service = EngineService :: new (
213201 consensus,
214- executor_factory,
215202 chain_spec,
216203 client,
217204 Box :: pin ( incoming_requests) ,
0 commit comments