chore: rm redundant trait bound (#11940)

This commit is contained in:
Matthias Seitz
2024-10-21 20:05:06 +02:00
committed by GitHub
parent 20dc0c7da0
commit 3f2a41bd3f

View File

@ -21,8 +21,8 @@ use reth_evm::{
};
use reth_primitives::{Block, BlockId, BlockNumberOrTag, TransactionSignedEcRecovered};
use reth_provider::{
BlockReaderIdExt, ChainSpecProvider, EvmEnvProvider, HeaderProvider, StateProofProvider,
StateProviderFactory, TransactionVariant,
BlockReaderIdExt, ChainSpecProvider, HeaderProvider, StateProofProvider, StateProviderFactory,
TransactionVariant,
};
use reth_revm::database::StateProviderDatabase;
use reth_rpc_api::DebugApiServer;
@ -81,7 +81,6 @@ where
+ HeaderProvider
+ ChainSpecProvider<ChainSpec: EthereumHardforks>
+ StateProviderFactory
+ EvmEnvProvider
+ 'static,
Eth: EthApiTypes + TraceExt + 'static,
BlockExecutor: BlockExecutorProvider,
@ -842,7 +841,6 @@ where
+ HeaderProvider
+ ChainSpecProvider<ChainSpec: EthereumHardforks>
+ StateProviderFactory
+ EvmEnvProvider
+ 'static,
Eth: EthApiSpec + EthTransactions + TraceExt + 'static,
BlockExecutor: BlockExecutorProvider,
@ -979,15 +977,6 @@ where
.map_err(Into::into)
}
/// Handler for `debug_executionWitness`
async fn debug_execution_witness(
&self,
block: BlockNumberOrTag,
) -> RpcResult<ExecutionWitness> {
let _permit = self.acquire_trace_permit().await;
Self::debug_execution_witness(self, block).await.map_err(Into::into)
}
/// Handler for `debug_traceCall`
async fn debug_trace_call(
&self,
@ -1011,6 +1000,15 @@ where
Self::debug_trace_call_many(self, bundles, state_context, opts).await.map_err(Into::into)
}
/// Handler for `debug_executionWitness`
async fn debug_execution_witness(
&self,
block: BlockNumberOrTag,
) -> RpcResult<ExecutionWitness> {
let _permit = self.acquire_trace_permit().await;
Self::debug_execution_witness(self, block).await.map_err(Into::into)
}
async fn debug_backtrace_at(&self, _location: &str) -> RpcResult<()> {
Ok(())
}