reth_transaction_pool

Trait PayloadTransactions

Source
pub trait PayloadTransactions {
    // Required methods
    fn next(&mut self, ctx: ()) -> Option<TransactionSignedEcRecovered>;
    fn mark_invalid(&mut self, sender: Address, nonce: u64);
}
Expand description

Iterator that returns transactions for the block building process in the order they should be included in the block.

Can include transactions from the pool and other sources (alternative pools, sequencer-originated transactions, etc.).

Required Methods§

Source

fn next(&mut self, ctx: ()) -> Option<TransactionSignedEcRecovered>

Returns the next transaction to include in the block.

Source

fn mark_invalid(&mut self, sender: Address, nonce: u64)

Exclude descendants of the transaction with given sender and nonce from the iterator, because this transaction won’t be included in the block.

Implementors§

Source§

impl PayloadTransactions for PayloadTransactionsFixed<TransactionSignedEcRecovered>

Source§

impl<B, A> PayloadTransactions for PayloadTransactionsChain<B, A>

Source§

impl<T, I> PayloadTransactions for BestPayloadTransactions<T, I>
where T: PoolTransaction<Consensus: Into<TransactionSignedEcRecovered>>, I: Iterator<Item = Arc<ValidPoolTransaction<T>>>,