Fix native version text on startup (#5618)

* Native version text was borked.

* Unfix benchmarking.
This commit is contained in:
Gavin Wood
2020-04-13 19:06:48 +02:00
committed by GitHub
parent 1e1b066817
commit a5da816e89
6 changed files with 20 additions and 5 deletions
+7 -2
View File
@@ -134,8 +134,12 @@ impl<C: SubstrateCli> Runner<C> {
/// A helper function that runs an `AbstractService` with tokio and stops if the process receives
/// the signal `SIGTERM` or `SIGINT`.
pub fn run_node<FNL, FNF, SL, SF>(self, new_light: FNL, new_full: FNF) -> Result<()>
where
pub fn run_node<FNL, FNF, SL, SF>(
self,
new_light: FNL,
new_full: FNF,
runtime_version: sp_version::RuntimeVersion,
) -> Result<()> where
FNL: FnOnce(Configuration) -> sc_service::error::Result<SL>,
FNF: FnOnce(Configuration) -> sc_service::error::Result<SF>,
SL: AbstractService + Unpin,
@@ -152,6 +156,7 @@ impl<C: SubstrateCli> Runner<C> {
info!("📋 Chain specification: {}", self.config.chain_spec.name());
info!("🏷 Node name: {}", self.config.network.node_name);
info!("👤 Role: {}", self.config.display_role());
info!("⛓ Native runtime: {}", runtime_version);
match self.config.role {
Role::Light => self.run_service_until_exit(new_light),