diff --git a/Cargo.lock b/Cargo.lock index 2518f6ae72..2c8763d88c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8292,7 +8292,6 @@ dependencies = [ "bitflags 2.5.0", "criterion", "futures-util", - "itertools 0.13.0", "metrics", "parking_lot 0.12.3", "paste", diff --git a/crates/transaction-pool/Cargo.toml b/crates/transaction-pool/Cargo.toml index f45e198cb4..77edd6f3e5 100644 --- a/crates/transaction-pool/Cargo.toml +++ b/crates/transaction-pool/Cargo.toml @@ -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 } diff --git a/crates/transaction-pool/src/pool/txpool.rs b/crates/transaction-pool/src/pool/txpool.rs index 01e9f84c17..48048412eb 100644 --- a/crates/transaction-pool/src/pool/txpool.rs +++ b/crates/transaction-pool/src/pool/txpool.rs @@ -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 Default for UpdateOutcome { } } -/// Represents the outcome of a prune -pub struct PruneResult { - /// A list of added transactions that a pruned marker satisfied - pub promoted: Vec>, - /// all transactions that failed to be promoted and now are discarded - pub failed: Vec, - /// all transactions that were pruned from the ready pool - pub pruned: Vec>>, -} - -impl fmt::Debug for PruneResult { - 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 {