mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
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: https://github.com/paritytech/substrate/discussions/11520
This commit is contained in:
@@ -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},
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user