mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 13:21:01 +00:00
Remove kusama and polkadot runtime crates (#1731)
This pull request is removing the Kusama and Polkadot runtime crates. As still some crates dependent on the runtime crates, this pull request is doing some more changes. - It removes the `hostperfcheck` CLI command. This CLI command could compare the current node against the standard hardware by doing some checks. Later we added the hardware benchmark feature to Substrate. This hardware benchmark is running on every node startup and prints a warning if the current node is too slow. This makes this CLI command a duplicate that was also depending on the kusama runtime. - The pull request is removing the emulated integration tests that were requiring the Kusama or Polkadot runtime crates.
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
|
||||
use clap::{Parser, ValueEnum};
|
||||
use generate_bags::generate_thresholds;
|
||||
use kusama_runtime::Runtime as KusamaRuntime;
|
||||
use polkadot_runtime::Runtime as PolkadotRuntime;
|
||||
use std::path::{Path, PathBuf};
|
||||
use westend_runtime::Runtime as WestendRuntime;
|
||||
|
||||
@@ -31,8 +29,6 @@ use westend_runtime::Runtime as WestendRuntime;
|
||||
#[value(rename_all = "PascalCase")]
|
||||
enum Runtime {
|
||||
Westend,
|
||||
Kusama,
|
||||
Polkadot,
|
||||
}
|
||||
|
||||
impl Runtime {
|
||||
@@ -41,8 +37,6 @@ impl Runtime {
|
||||
) -> Box<dyn FnOnce(usize, &Path, u128, u128) -> Result<(), std::io::Error>> {
|
||||
match self {
|
||||
Runtime::Westend => Box::new(generate_thresholds::<WestendRuntime>),
|
||||
Runtime::Kusama => Box::new(generate_thresholds::<KusamaRuntime>),
|
||||
Runtime::Polkadot => Box::new(generate_thresholds::<PolkadotRuntime>),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -54,7 +48,7 @@ struct Opt {
|
||||
n_bags: usize,
|
||||
|
||||
/// Which runtime to generate.
|
||||
#[arg(long, ignore_case = true, value_enum, default_value_t = Runtime::Polkadot)]
|
||||
#[arg(long, ignore_case = true, value_enum, default_value_t = Runtime::Westend)]
|
||||
runtime: Runtime,
|
||||
|
||||
/// Where to write the output.
|
||||
|
||||
Reference in New Issue
Block a user