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

Commit

Permalink
Expose ValidatedTransaction from transaction pool (paritytech#11588)
Browse files Browse the repository at this point in the history
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: paritytech#11520
  • Loading branch information
liuchengxu authored and DaviRain-Su committed Aug 23, 2022
1 parent 567f9c9 commit cafd284
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/transaction-pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ use futures::{
future::{self, ready},
prelude::*,
};
pub use graph::{base_pool::Limit as PoolLimit, ChainApi, Options, Pool, Transaction};
pub use graph::{
base_pool::Limit as PoolLimit, ChainApi, Options, Pool, Transaction, ValidatedTransaction,
};
use parking_lot::Mutex;
use std::{
collections::{HashMap, HashSet},
Expand Down Expand Up @@ -407,7 +409,6 @@ where
at: &BlockId<Self::Block>,
xt: sc_transaction_pool_api::LocalTransactionFor<Self>,
) -> Result<Self::Hash, Self::Error> {
use graph::ValidatedTransaction;
use sp_runtime::{
traits::SaturatedConversion, transaction_validity::TransactionValidityError,
};
Expand Down

0 comments on commit cafd284

Please sign in to comment.