Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Expose ValidatedTransaction from transaction pool
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
  • Loading branch information
liuchengxu committed Jun 3, 2022
commit 53cc3ace1ab68bc28ef44347645e4502fcdf8e28
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