mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 19:27:58 +00:00
* update rustls to be compat with jsronrpsee 0.2.0 * Stub try-cli when feat not enabled * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+159
-155
File diff suppressed because it is too large
Load Diff
@@ -57,10 +57,14 @@ pub enum Subcommand {
|
||||
)]
|
||||
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
|
||||
|
||||
/// Testing subcommand for runtime testing and trying.
|
||||
/// Try some command against runtime state.
|
||||
#[cfg(feature = "try-runtime")]
|
||||
TryRuntime(try_runtime_cli::TryRuntimeCmd),
|
||||
|
||||
/// Try some command against runtime state. Note: `try-runtime` feature must be enabled.
|
||||
#[cfg(not(feature = "try-runtime"))]
|
||||
TryRuntime,
|
||||
|
||||
/// Key management cli utilities
|
||||
Key(sc_cli::KeySubcommand),
|
||||
}
|
||||
|
||||
@@ -395,7 +395,6 @@ pub fn run() -> Result<()> {
|
||||
>(config).map_err(Error::SubstrateCli), task_manager))
|
||||
})
|
||||
}
|
||||
|
||||
// else we assume it is polkadot.
|
||||
runner.async_run(|config| {
|
||||
Ok((cmd.run::<
|
||||
@@ -403,7 +402,12 @@ pub fn run() -> Result<()> {
|
||||
service::PolkadotExecutor,
|
||||
>(config).map_err(Error::SubstrateCli), task_manager))
|
||||
})
|
||||
}
|
||||
},
|
||||
#[cfg(not(feature = "try-runtime"))]
|
||||
Some(Subcommand::TryRuntime) => {
|
||||
Err(Error::Other("TryRuntime wasn't enabled when building the node. \
|
||||
You can enable it with `--features try-runtime`.".into()).into())
|
||||
},
|
||||
}?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user