11use crate :: { RuRevmState , SignetCtx } ;
22use alloy:: { consensus:: Header , eips:: BlockId } ;
33use reth:: {
4- providers:: { ProviderFactory , ProviderResult , providers:: BlockchainProvider } ,
4+ providers:: { ProviderResult , providers:: BlockchainProvider } ,
55 rpc:: server_types:: eth:: { EthApiError , EthConfig } ,
66 rpc:: types:: BlockNumberOrTag ,
77 tasks:: { TaskExecutor , TaskSpawner } ,
@@ -102,7 +102,6 @@ where
102102 pub fn new < Tasks > (
103103 host : Host ,
104104 constants : SignetSystemConstants ,
105- factory : ProviderFactory < Signet > ,
106105 provider : BlockchainProvider < Signet > ,
107106 eth_config : EthConfig ,
108107 tx_cache : Option < TxCache > ,
@@ -111,7 +110,7 @@ where
111110 where
112111 Tasks : TaskSpawner + Clone + ' static ,
113112 {
114- RpcCtxInner :: new ( host, constants, factory , provider, eth_config, tx_cache, spawner)
113+ RpcCtxInner :: new ( host, constants, provider, eth_config, tx_cache, spawner)
115114 . map ( |inner| Self { inner : Arc :: new ( inner) } )
116115 }
117116}
@@ -177,7 +176,6 @@ where
177176 pub fn new < Tasks > (
178177 host : Host ,
179178 constants : SignetSystemConstants ,
180- factory : ProviderFactory < Signet > ,
181179 provider : BlockchainProvider < Signet > ,
182180 eth_config : EthConfig ,
183181 tx_cache : Option < TxCache > ,
@@ -186,14 +184,12 @@ where
186184 where
187185 Tasks : TaskSpawner + Clone + ' static ,
188186 {
189- SignetCtx :: new ( constants, factory, provider, eth_config, tx_cache, spawner) . map ( |signet| {
190- Self {
191- host,
192- signet,
193- shared : SharedContext {
194- tracing_semaphores : Semaphore :: new ( eth_config. max_tracing_requests ) . into ( ) ,
195- } ,
196- }
187+ SignetCtx :: new ( constants, provider, eth_config, tx_cache, spawner) . map ( |signet| Self {
188+ host,
189+ signet,
190+ shared : SharedContext {
191+ tracing_semaphores : Semaphore :: new ( eth_config. max_tracing_requests ) . into ( ) ,
192+ } ,
197193 } )
198194 }
199195
0 commit comments