Companion to #8966 (#3186)

* 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:
Zeke Mostov
2021-06-09 15:40:04 -07:00
committed by GitHub
parent 4de30aa5d9
commit b2c9305d77
3 changed files with 170 additions and 158 deletions
+6 -2
View File
@@ -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(())
}