mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-26 23:58:46 -05:00
chore(rpc): remove redundant trait bounds in eth api (#12105)
This commit is contained in:
@@ -10,10 +10,7 @@ use reth::{
|
||||
network::PeersHandleProvider,
|
||||
providers::{BlockReader, BlockReaderIdExt, CanonStateSubscriptions, StageCheckpointReader},
|
||||
rpc::{
|
||||
api::eth::{
|
||||
helpers::{EthApiSpec, EthTransactions, TraceExt},
|
||||
FullEthApiTypes,
|
||||
},
|
||||
api::eth::helpers::{EthApiSpec, EthTransactions, TraceExt},
|
||||
types::engine::PayloadStatusEnum,
|
||||
},
|
||||
};
|
||||
@@ -97,7 +94,7 @@ where
|
||||
where
|
||||
Engine::ExecutionPayloadEnvelopeV3: From<Engine::BuiltPayload> + PayloadEnvelopeExt,
|
||||
Engine::ExecutionPayloadEnvelopeV4: From<Engine::BuiltPayload> + PayloadEnvelopeExt,
|
||||
AddOns::EthApi: EthApiSpec + EthTransactions + TraceExt + FullEthApiTypes,
|
||||
AddOns::EthApi: EthApiSpec + EthTransactions + TraceExt,
|
||||
{
|
||||
let mut chain = Vec::with_capacity(length as usize);
|
||||
for i in 0..length {
|
||||
|
||||
@@ -231,7 +231,7 @@ pub trait EthTransactions: LoadTransaction {
|
||||
include_pending: bool,
|
||||
) -> impl Future<Output = Result<Option<RpcTransaction<Self::NetworkTypes>>, Self::Error>> + Send
|
||||
where
|
||||
Self: LoadBlock + LoadState + FullEthApiTypes,
|
||||
Self: LoadBlock + LoadState,
|
||||
{
|
||||
async move {
|
||||
// Check the pool first
|
||||
|
||||
@@ -145,8 +145,7 @@ where
|
||||
impl<Provider, Pool, Eth> EthFilter<Provider, Pool, Eth>
|
||||
where
|
||||
Provider: BlockReader + BlockIdReader + EvmEnvProvider + 'static,
|
||||
Pool: TransactionPool + 'static,
|
||||
<Pool as TransactionPool>::Transaction: 'static,
|
||||
Pool: TransactionPool<Transaction: 'static> + 'static,
|
||||
Eth: FullEthApiTypes,
|
||||
{
|
||||
/// Returns all the filter changes for the given id, if any
|
||||
|
||||
Reference in New Issue
Block a user