Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 5f0aa1f

Browse files
authored
Expose ValidatedTransaction from transaction pool (#11588)
This is required to make a tx pool wrapper for some custom transaction validation, specificially required to make a wrapper around the `LocalTransactionPool` implementation (https://github.com/subspace/subspace/blob/f54881a9b5/crates/subspace-service/src/pool.rs#L232-L269). Related: #11520
1 parent 4132d04 commit 5f0aa1f

File tree

1 file changed

+3
-2
lines changed
  • client/transaction-pool/src

1 file changed

+3
-2
lines changed

client/transaction-pool/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ use futures::{
3636
future::{self, ready},
3737
prelude::*,
3838
};
39-
pub use graph::{base_pool::Limit as PoolLimit, ChainApi, Options, Pool, Transaction};
39+
pub use graph::{
40+
base_pool::Limit as PoolLimit, ChainApi, Options, Pool, Transaction, ValidatedTransaction,
41+
};
4042
use parking_lot::Mutex;
4143
use std::{
4244
collections::{HashMap, HashSet},
@@ -407,7 +409,6 @@ where
407409
at: &BlockId<Self::Block>,
408410
xt: sc_transaction_pool_api::LocalTransactionFor<Self>,
409411
) -> Result<Self::Hash, Self::Error> {
410-
use graph::ValidatedTransaction;
411412
use sp_runtime::{
412413
traits::SaturatedConversion, transaction_validity::TransactionValidityError,
413414
};

0 commit comments

Comments
 (0)