diff --git a/client/transaction-pool/graph/src/validated_pool.rs b/client/transaction-pool/graph/src/validated_pool.rs index 6042189e87e23..2e4db12486192 100644 --- a/client/transaction-pool/graph/src/validated_pool.rs +++ b/client/transaction-pool/graph/src/validated_pool.rs @@ -610,6 +610,13 @@ impl ValidatedPool { self.pool.read().ready() } + /// Returns a Vec of hashes and extrinsics in the future pool. + pub fn futures(&self) -> Vec<(ExtrinsicHash, ExtrinsicFor)> { + 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()