reth_optimism_payload_builder::builder

Trait OpPayloadTransactions

Source
pub trait OpPayloadTransactions:
    Clone
    + Send
    + Sync
    + Unpin
    + 'static {
    // Required method
    fn best_transactions<Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TransactionSigned>>>(
        &self,
        pool: Pool,
        attr: BestTransactionsAttributes,
    ) -> impl PayloadTransactions<Transaction = TransactionSigned>;
}
Available on crate feature optimism only.
Expand description

A type that returns a the PayloadTransactions that should be included in the pool.

Required Methods§

Source

fn best_transactions<Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TransactionSigned>>>( &self, pool: Pool, attr: BestTransactionsAttributes, ) -> impl PayloadTransactions<Transaction = TransactionSigned>

Returns an iterator that yields the transaction in the order they should get included in the new payload.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OpPayloadTransactions for ()

Source§

fn best_transactions<Pool: TransactionPool<Transaction: PoolTransaction<Consensus = TransactionSigned>>>( &self, pool: Pool, attr: BestTransactionsAttributes, ) -> impl PayloadTransactions<Transaction = TransactionSigned>

Implementors§