Trait OpPayloadTransactions

Source
pub trait OpPayloadTransactions<Transaction>:
    Clone
    + Send
    + Sync
    + Unpin
    + 'static {
    // Required method
    fn best_transactions<Pool: TransactionPool<Transaction = Transaction>>(
        &self,
        pool: Pool,
        attr: BestTransactionsAttributes,
    ) -> impl PayloadTransactions<Transaction = Transaction>;
}
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 = Transaction>>( &self, pool: Pool, attr: BestTransactionsAttributes, ) -> impl PayloadTransactions<Transaction = Transaction>

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<T: PoolTransaction> OpPayloadTransactions<T> for ()

Source§

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

Implementors§