chore: remove unused type (#9019)

This commit is contained in:
Matthias Seitz
2024-06-21 18:21:53 +02:00
committed by GitHub
parent 2473ed880b
commit 16b10dc1a3
3 changed files with 0 additions and 32 deletions

View File

@ -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 }

View File

@ -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 {