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