mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: rm deprecated txpool fn (#12198)
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user