mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove unused WithdrawalsProvider::latest_withdrawal (#13671)
This commit is contained in:
@ -9,10 +9,7 @@ use crate::{
|
||||
TransactionVariant, TransactionsProvider, WithdrawalsProvider,
|
||||
};
|
||||
use alloy_consensus::transaction::TransactionMeta;
|
||||
use alloy_eips::{
|
||||
eip4895::{Withdrawal, Withdrawals},
|
||||
BlockHashOrNumber, BlockId, BlockNumberOrTag,
|
||||
};
|
||||
use alloy_eips::{eip4895::Withdrawals, BlockHashOrNumber, BlockId, BlockNumberOrTag};
|
||||
use alloy_primitives::{
|
||||
map::{B256HashMap, HashMap},
|
||||
Address, BlockHash, BlockNumber, Bytes, StorageKey, StorageValue, TxHash, TxNumber, B256, U256,
|
||||
@ -543,9 +540,6 @@ impl<C: Send + Sync, N: NodePrimitives> WithdrawalsProvider for NoopProvider<C,
|
||||
) -> ProviderResult<Option<Withdrawals>> {
|
||||
Ok(None)
|
||||
}
|
||||
fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>> {
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
||||
impl<C: Send + Sync, N: NodePrimitives> OmmersProvider for NoopProvider<C, N> {
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
use alloy_eips::{
|
||||
eip4895::{Withdrawal, Withdrawals},
|
||||
BlockHashOrNumber,
|
||||
};
|
||||
use alloy_eips::{eip4895::Withdrawals, BlockHashOrNumber};
|
||||
use reth_storage_errors::provider::ProviderResult;
|
||||
|
||||
/// Client trait for fetching [Withdrawal] related data.
|
||||
/// Client trait for fetching [`alloy_eips::eip4895::Withdrawal`] related data.
|
||||
#[auto_impl::auto_impl(&, Arc)]
|
||||
pub trait WithdrawalsProvider: Send + Sync {
|
||||
/// Get withdrawals by block id.
|
||||
@ -13,7 +10,4 @@ pub trait WithdrawalsProvider: Send + Sync {
|
||||
id: BlockHashOrNumber,
|
||||
timestamp: u64,
|
||||
) -> ProviderResult<Option<Withdrawals>>;
|
||||
|
||||
/// Get latest withdrawal from this block or earlier .
|
||||
fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user