mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 12:51:05 +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()
|
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.
|
/// Returns pool status.
|
||||||
pub fn status(&self) -> PoolStatus {
|
pub fn status(&self) -> PoolStatus {
|
||||||
self.pool.read().status()
|
self.pool.read().status()
|
||||||
|
|||||||
Reference in New Issue
Block a user