mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 12:41:07 +00:00
sc-transcation-pool refactor (#9228)
* Use TransactionPool trait * sc-transaction-pool-primitives * sc-transaction-pool-api * TP * bye sc_transaction_graph * fix line widths * fix import errors * fix import errors * fix import errors 🤦🏾♂️ * fix import errors 🤦🏾♂️🤦🏾♂️🤦🏾♂️ * remove sp-keyring
This commit is contained in:
@@ -33,7 +33,7 @@ sc-network = { version = "0.9.0", path = "../../network" }
|
||||
sp-consensus = { version = "0.9.0", path = "../../../primitives/consensus/common" }
|
||||
sp-runtime = { version = "3.0.0", path = "../../../primitives/runtime" }
|
||||
sp-core = { version = "3.0.0", path = "../../../primitives/core" }
|
||||
sp-transaction-pool = { version = "3.0.0", path = "../../../primitives/transaction-pool" }
|
||||
sc-transaction-pool-api = { version = "3.0.0", path = "../../../client/transaction-pool/api" }
|
||||
substrate-test-runtime = { version = "2.0.0", path = "../../../test-utils/runtime" }
|
||||
substrate-test-runtime-client = { version = "2.0.0", path = "../../../test-utils/runtime/client" }
|
||||
sc-client-api = { version = "3.0.0", path = "../../api" }
|
||||
|
||||
@@ -47,7 +47,7 @@ use sp_blockchain::HeaderBackend;
|
||||
use sc_network::{multiaddr, Multiaddr};
|
||||
use sc_network::config::{NetworkConfiguration, TransportConfig};
|
||||
use sp_runtime::{generic::BlockId, traits::Block as BlockT};
|
||||
use sp_transaction_pool::TransactionPool;
|
||||
use sc_transaction_pool_api::TransactionPool;
|
||||
use sc_client_api::{Backend, CallExecutor};
|
||||
use parking_lot::Mutex;
|
||||
|
||||
@@ -575,7 +575,7 @@ pub fn sync<G, E, Fb, F, Lb, L, B, ExF, U>(
|
||||
let first_user_data = &network.full_nodes[0].2;
|
||||
let best_block = BlockId::number(first_service.client().info().best_number);
|
||||
let extrinsic = extrinsic_factory(&first_service, first_user_data);
|
||||
let source = sp_transaction_pool::TransactionSource::External;
|
||||
let source = sc_transaction_pool_api::TransactionSource::External;
|
||||
|
||||
futures::executor::block_on(
|
||||
first_service.transaction_pool().submit_one(&best_block, source, extrinsic)
|
||||
|
||||
Reference in New Issue
Block a user