Trait OpPayloadTransactions
pub trait OpPayloadTransactions:
Clone
+ Send
+ Sync
+ Unpin
+ 'static {
// Required method
fn best_transactions<Pool>(
&self,
pool: Pool,
attr: BestTransactionsAttributes,
) -> impl PayloadTransactions<Transaction = TransactionSigned>
where Pool: TransactionPool,
<Pool as TransactionPool>::Transaction: PoolTransaction<Consensus = 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§
fn best_transactions<Pool>(
&self,
pool: Pool,
attr: BestTransactionsAttributes,
) -> impl PayloadTransactions<Transaction = TransactionSigned>where
Pool: TransactionPool,
<Pool as TransactionPool>::Transaction: PoolTransaction<Consensus = TransactionSigned>,
fn best_transactions<Pool>(
&self,
pool: Pool,
attr: BestTransactionsAttributes,
) -> impl PayloadTransactions<Transaction = TransactionSigned>where
Pool: TransactionPool,
<Pool as TransactionPool>::Transaction: PoolTransaction<Consensus = 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.