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§
Sourcefn best_transactions<Pool: TransactionPool<Transaction = Transaction>>(
&self,
pool: Pool,
attr: BestTransactionsAttributes,
) -> impl PayloadTransactions<Transaction = Transaction>
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.