mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 17:41:08 +00:00
Quickly skip invalid transactions during block authorship. (#9789)
* Support skipping invalid transactions in the iterator. * Expose concrete iterator. * cargo +nightly fmt --all * More consistent placement. * Update Cargo.lock * Pass transaction to 'report_invalid'
This commit is contained in:
@@ -36,7 +36,7 @@ use sp_runtime::{
|
||||
|
||||
use super::{
|
||||
future::{FutureTransactions, WaitingTransaction},
|
||||
ready::ReadyTransactions,
|
||||
ready::{BestIterator, ReadyTransactions},
|
||||
};
|
||||
|
||||
/// Successful import result.
|
||||
@@ -355,7 +355,7 @@ impl<Hash: hash::Hash + Member + Serialize, Ex: std::fmt::Debug> BasePool<Hash,
|
||||
}
|
||||
|
||||
/// Returns an iterator over ready transactions in the pool.
|
||||
pub fn ready(&self) -> impl Iterator<Item = Arc<Transaction<Hash, Ex>>> {
|
||||
pub fn ready(&self) -> BestIterator<Hash, Ex> {
|
||||
self.ready.get()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user