mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-26 07:38:59 -05:00
chore(rpc): simplify trait bounds on EthApiSpec impl (#12101)
This commit is contained in:
@@ -3,20 +3,17 @@ use reth_chainspec::EthereumHardforks;
|
||||
use reth_network_api::NetworkInfo;
|
||||
use reth_provider::{BlockNumReader, ChainSpecProvider, StageCheckpointReader};
|
||||
use reth_rpc_eth_api::{helpers::EthApiSpec, RpcNodeCore};
|
||||
use reth_transaction_pool::TransactionPool;
|
||||
|
||||
use crate::EthApi;
|
||||
|
||||
impl<Provider, Pool, Network, EvmConfig> EthApiSpec for EthApi<Provider, Pool, Network, EvmConfig>
|
||||
where
|
||||
Self: RpcNodeCore<Provider = Provider, Network = Network>,
|
||||
Pool: TransactionPool + 'static,
|
||||
Provider: ChainSpecProvider<ChainSpec: EthereumHardforks>
|
||||
+ BlockNumReader
|
||||
+ StageCheckpointReader
|
||||
+ 'static,
|
||||
Network: NetworkInfo + 'static,
|
||||
EvmConfig: Send + Sync,
|
||||
Self: RpcNodeCore<
|
||||
Provider: ChainSpecProvider<ChainSpec: EthereumHardforks>
|
||||
+ BlockNumReader
|
||||
+ StageCheckpointReader,
|
||||
Network: NetworkInfo,
|
||||
>,
|
||||
{
|
||||
fn starting_block(&self) -> U256 {
|
||||
self.inner.starting_block()
|
||||
|
||||
Reference in New Issue
Block a user