chore: rm deprecated txpool fn (#12198)

This commit is contained in:
Matthias Seitz
2024-10-31 09:34:31 +01:00
committed by GitHub
parent 9659717e83
commit 66cc619128
3 changed files with 0 additions and 24 deletions

View File

@ -430,13 +430,6 @@ where
Box::new(self.pool.best_transactions())
}
fn best_transactions_with_base_fee(
&self,
base_fee: u64,
) -> Box<dyn BestTransactions<Item = Arc<ValidPoolTransaction<Self::Transaction>>>> {
self.pool.best_transactions_with_attributes(BestTransactionsAttributes::base_fee(base_fee))
}
fn best_transactions_with_attributes(
&self,
best_transactions_attributes: BestTransactionsAttributes,

View File

@ -150,13 +150,6 @@ impl TransactionPool for NoopTransactionPool {
Box::new(std::iter::empty())
}
fn best_transactions_with_base_fee(
&self,
_: u64,
) -> Box<dyn BestTransactions<Item = Arc<ValidPoolTransaction<Self::Transaction>>>> {
Box::new(std::iter::empty())
}
fn best_transactions_with_attributes(
&self,
_: BestTransactionsAttributes,

View File

@ -248,16 +248,6 @@ pub trait TransactionPool: Send + Sync + Clone {
&self,
) -> Box<dyn BestTransactions<Item = Arc<ValidPoolTransaction<Self::Transaction>>>>;
/// Returns an iterator that yields transactions that are ready for block production with the
/// given base fee.
///
/// Consumer: Block production
#[deprecated(note = "Use best_transactions_with_attributes instead.")]
fn best_transactions_with_base_fee(
&self,
base_fee: u64,
) -> Box<dyn BestTransactions<Item = Arc<ValidPoolTransaction<Self::Transaction>>>>;
/// Returns an iterator that yields transactions that are ready for block production with the
/// given base fee and optional blob fee attributes.
///