mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 02:31:03 +00:00
Cumulus test service cleanup (#2887)
closes #2567 Followup for https://github.com/paritytech/polkadot-sdk/pull/2331 This PR contains multiple internal cleanups: 1. This gets rid of the functionality in `generate_genesis_block` which was only used in one benchmark 2. Fixed `transaction_pool` and `transaction_throughput` benchmarks failing since they require a tokio runtime now. 3. Removed `parachain_id` CLI option from the test parachain 4. Removed `expect` call from `RuntimeResolver`
This commit is contained in:
@@ -23,9 +23,6 @@ pub mod bench_utils;
|
||||
|
||||
pub mod chain_spec;
|
||||
|
||||
/// Utilities for creating test genesis block and head data
|
||||
pub mod genesis;
|
||||
|
||||
use runtime::AccountId;
|
||||
use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
|
||||
use std::{
|
||||
@@ -88,7 +85,6 @@ use substrate_test_client::{
|
||||
|
||||
pub use chain_spec::*;
|
||||
pub use cumulus_test_runtime as runtime;
|
||||
pub use genesis::*;
|
||||
pub use sp_keyring::Sr25519Keyring as Keyring;
|
||||
|
||||
const LOG_TARGET: &str = "cumulus-test-service";
|
||||
@@ -922,7 +918,7 @@ pub fn run_relay_chain_validator_node(
|
||||
) -> polkadot_test_service::PolkadotTestNode {
|
||||
let mut config = polkadot_test_service::node_config(
|
||||
storage_update_func,
|
||||
tokio_handle,
|
||||
tokio_handle.clone(),
|
||||
key,
|
||||
boot_nodes,
|
||||
true,
|
||||
@@ -936,5 +932,7 @@ pub fn run_relay_chain_validator_node(
|
||||
workers_path.pop();
|
||||
workers_path.pop();
|
||||
|
||||
polkadot_test_service::run_validator_node(config, Some(workers_path))
|
||||
tokio_handle.block_on(async move {
|
||||
polkadot_test_service::run_validator_node(config, Some(workers_path))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user