mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 07:31:02 +00:00
Remove deprecated TryRuntime subcommand (#4017)
Completes the removal of `try-runtime-cli` logic from `polkadot-sdk`.
This commit is contained in:
@@ -33,7 +33,6 @@ sp-io = { path = "../../substrate/primitives/io" }
|
||||
sp-keyring = { path = "../../substrate/primitives/keyring" }
|
||||
sp-maybe-compressed-blob = { path = "../../substrate/primitives/maybe-compressed-blob" }
|
||||
frame-benchmarking-cli = { path = "../../substrate/utils/frame/benchmarking-cli", optional = true }
|
||||
try-runtime-cli = { path = "../../substrate/utils/frame/try-runtime/cli", optional = true }
|
||||
sc-cli = { path = "../../substrate/client/cli", optional = true }
|
||||
sc-service = { path = "../../substrate/client/service", optional = true }
|
||||
polkadot-node-metrics = { path = "../node/metrics" }
|
||||
@@ -57,7 +56,6 @@ cli = [
|
||||
"sc-service",
|
||||
"sc-tracing",
|
||||
"service",
|
||||
"try-runtime-cli",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-benchmarking-cli?/runtime-benchmarks",
|
||||
@@ -70,7 +68,6 @@ full-node = ["service/full-node"]
|
||||
try-runtime = [
|
||||
"service/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
"try-runtime-cli/try-runtime",
|
||||
]
|
||||
fast-runtime = ["service/fast-runtime"]
|
||||
pyroscope = ["pyro", "pyroscope_pprofrs"]
|
||||
|
||||
@@ -50,11 +50,6 @@ pub enum Subcommand {
|
||||
#[command(subcommand)]
|
||||
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
|
||||
|
||||
/// Try-runtime has migrated to a standalone CLI
|
||||
/// (<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and
|
||||
/// deprecation notice. It will be removed entirely some time after January 2024.
|
||||
TryRuntime,
|
||||
|
||||
/// Key management CLI utilities
|
||||
#[command(subcommand)]
|
||||
Key(sc_cli::KeySubcommand),
|
||||
|
||||
@@ -476,13 +476,6 @@ pub fn run() -> Result<()> {
|
||||
}
|
||||
},
|
||||
Some(Subcommand::Key(cmd)) => Ok(cmd.run(&cli)?),
|
||||
#[cfg(feature = "try-runtime")]
|
||||
Some(Subcommand::TryRuntime) => Err(try_runtime_cli::DEPRECATION_NOTICE.to_owned().into()),
|
||||
#[cfg(not(feature = "try-runtime"))]
|
||||
Some(Subcommand::TryRuntime) => Err("TryRuntime wasn't enabled when building the node. \
|
||||
You can enable it with `--features try-runtime`."
|
||||
.to_owned()
|
||||
.into()),
|
||||
Some(Subcommand::ChainInfo(cmd)) => {
|
||||
let runner = cli.create_runner(cmd)?;
|
||||
Ok(runner.sync_run(|config| cmd.run::<service::Block>(&config))?)
|
||||
|
||||
Reference in New Issue
Block a user