feat: restructure op builder (#12229)

This commit is contained in:
Matthias Seitz
2024-11-05 15:04:52 +01:00
committed by GitHub
parent 15c230bac2
commit 5af551782c
3 changed files with 623 additions and 321 deletions

View File

@ -739,6 +739,11 @@ impl fmt::Display for CanonicalStateUpdate<'_> {
}
}
/// Alias to restrict the [`BestTransactions`] items to the pool's transaction type.
pub type BestTransactionsFor<Pool> = Box<
dyn BestTransactions<Item = Arc<ValidPoolTransaction<<Pool as TransactionPool>::Transaction>>>,
>;
/// An `Iterator` that only returns transactions that are ready to be executed.
///
/// This makes no assumptions about the order of the transactions, but expects that _all_