mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove unused type (#9019)
This commit is contained in:
@ -45,7 +45,6 @@ serde = { workspace = true, features = ["derive", "rc"], optional = true }
|
||||
bitflags.workspace = true
|
||||
auto_impl.workspace = true
|
||||
smallvec.workspace = true
|
||||
itertools.workspace = true
|
||||
|
||||
# testing
|
||||
rand = { workspace = true, optional = true }
|
||||
|
||||
@ -18,7 +18,6 @@ use crate::{
|
||||
PoolConfig, PoolResult, PoolTransaction, PriceBumpConfig, TransactionOrdering,
|
||||
ValidPoolTransaction, U256,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use reth_primitives::{
|
||||
constants::{
|
||||
eip4844::BLOB_TX_MIN_BLOB_GASPRICE, ETHEREUM_BLOCK_GAS_LIMIT, MIN_PROTOCOL_BASE_FEE,
|
||||
@ -1800,35 +1799,6 @@ impl<T: PoolTransaction> Default for UpdateOutcome<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents the outcome of a prune
|
||||
pub struct PruneResult<T: PoolTransaction> {
|
||||
/// A list of added transactions that a pruned marker satisfied
|
||||
pub promoted: Vec<AddedTransaction<T>>,
|
||||
/// all transactions that failed to be promoted and now are discarded
|
||||
pub failed: Vec<TxHash>,
|
||||
/// all transactions that were pruned from the ready pool
|
||||
pub pruned: Vec<Arc<ValidPoolTransaction<T>>>,
|
||||
}
|
||||
|
||||
impl<T: PoolTransaction> fmt::Debug for PruneResult<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("PruneResult")
|
||||
.field(
|
||||
"promoted",
|
||||
&format_args!("[{}]", self.promoted.iter().map(|tx| tx.hash()).format(", ")),
|
||||
)
|
||||
.field("failed", &self.failed)
|
||||
.field(
|
||||
"pruned",
|
||||
&format_args!(
|
||||
"[{}]",
|
||||
self.pruned.iter().map(|tx| tx.transaction.hash()).format(", ")
|
||||
),
|
||||
)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
/// Stores relevant context about a sender.
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub(crate) struct SenderInfo {
|
||||
|
||||
Reference in New Issue
Block a user