mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
Add future transactions pool accessor to ValidatedPool (#8673)
This commit is contained in:
@@ -610,6 +610,13 @@ impl<B: ChainApi> ValidatedPool<B> {
|
||||
self.pool.read().ready()
|
||||
}
|
||||
|
||||
/// Returns a Vec of hashes and extrinsics in the future pool.
|
||||
pub fn futures(&self) -> Vec<(ExtrinsicHash<B>, ExtrinsicFor<B>)> {
|
||||
self.pool.read().futures()
|
||||
.map(|tx| (tx.hash.clone(), tx.data.clone()))
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Returns pool status.
|
||||
pub fn status(&self) -> PoolStatus {
|
||||
self.pool.read().status()
|
||||
|
||||
Reference in New Issue
Block a user