mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 16:01:04 +00:00
Fix native version text on startup (#5618)
* Native version text was borked. * Unfix benchmarking.
This commit is contained in:
Generated
+1
@@ -5869,6 +5869,7 @@ dependencies = [
|
|||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
"sp-state-machine",
|
"sp-state-machine",
|
||||||
"sp-utils",
|
"sp-utils",
|
||||||
|
"sp-version",
|
||||||
"structopt",
|
"structopt",
|
||||||
"substrate-prometheus-endpoint",
|
"substrate-prometheus-endpoint",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
|
|||||||
@@ -71,7 +71,11 @@ pub fn run() -> sc_cli::Result<()> {
|
|||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
let runner = cli.create_runner(&cli.run)?;
|
let runner = cli.create_runner(&cli.run)?;
|
||||||
runner.run_node(service::new_light, service::new_full)
|
runner.run_node(
|
||||||
|
service::new_light,
|
||||||
|
service::new_full,
|
||||||
|
node_template_runtime::VERSION
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,13 +53,13 @@ sp-inherents = { version = "2.0.0-alpha.5", path = "../../../primitives/inherent
|
|||||||
sp-keyring = { version = "2.0.0-alpha.5", path = "../../../primitives/keyring" }
|
sp-keyring = { version = "2.0.0-alpha.5", path = "../../../primitives/keyring" }
|
||||||
sp-io = { version = "2.0.0-alpha.5", path = "../../../primitives/io" }
|
sp-io = { version = "2.0.0-alpha.5", path = "../../../primitives/io" }
|
||||||
sp-consensus = { version = "0.8.0-alpha.5", path = "../../../primitives/consensus/common" }
|
sp-consensus = { version = "0.8.0-alpha.5", path = "../../../primitives/consensus/common" }
|
||||||
|
sp-transaction-pool = { version = "2.0.0-alpha.5", path = "../../../primitives/transaction-pool" }
|
||||||
|
|
||||||
# client dependencies
|
# client dependencies
|
||||||
sc-client-api = { version = "2.0.0-alpha.5", path = "../../../client/api" }
|
sc-client-api = { version = "2.0.0-alpha.5", path = "../../../client/api" }
|
||||||
sc-client = { version = "0.8.0-alpha.5", path = "../../../client/" }
|
sc-client = { version = "0.8.0-alpha.5", path = "../../../client/" }
|
||||||
sc-chain-spec = { version = "2.0.0-alpha.5", path = "../../../client/chain-spec" }
|
sc-chain-spec = { version = "2.0.0-alpha.5", path = "../../../client/chain-spec" }
|
||||||
sc-transaction-pool = { version = "2.0.0-alpha.5", path = "../../../client/transaction-pool" }
|
sc-transaction-pool = { version = "2.0.0-alpha.5", path = "../../../client/transaction-pool" }
|
||||||
sp-transaction-pool = { version = "2.0.0-alpha.5", path = "../../../primitives/transaction-pool" }
|
|
||||||
sc-network = { version = "0.8.0-alpha.5", path = "../../../client/network" }
|
sc-network = { version = "0.8.0-alpha.5", path = "../../../client/network" }
|
||||||
sc-consensus-babe = { version = "0.8.0-alpha.5", path = "../../../client/consensus/babe" }
|
sc-consensus-babe = { version = "0.8.0-alpha.5", path = "../../../client/consensus/babe" }
|
||||||
grandpa = { version = "0.8.0-alpha.5", package = "sc-finality-grandpa", path = "../../../client/finality-grandpa" }
|
grandpa = { version = "0.8.0-alpha.5", package = "sc-finality-grandpa", path = "../../../client/finality-grandpa" }
|
||||||
|
|||||||
@@ -72,7 +72,11 @@ pub fn run() -> Result<()> {
|
|||||||
match &cli.subcommand {
|
match &cli.subcommand {
|
||||||
None => {
|
None => {
|
||||||
let runner = cli.create_runner(&cli.run)?;
|
let runner = cli.create_runner(&cli.run)?;
|
||||||
runner.run_node(service::new_light, service::new_full)
|
runner.run_node(
|
||||||
|
service::new_light,
|
||||||
|
service::new_full,
|
||||||
|
node_runtime::VERSION
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Some(Subcommand::Inspect(cmd)) => {
|
Some(Subcommand::Inspect(cmd)) => {
|
||||||
let runner = cli.create_runner(cmd)?;
|
let runner = cli.create_runner(cmd)?;
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ sp-blockchain = { version = "2.0.0-alpha.5", path = "../../primitives/blockchain
|
|||||||
sc-network = { version = "0.8.0-alpha.5", path = "../network" }
|
sc-network = { version = "0.8.0-alpha.5", path = "../network" }
|
||||||
sp-runtime = { version = "2.0.0-alpha.5", path = "../../primitives/runtime" }
|
sp-runtime = { version = "2.0.0-alpha.5", path = "../../primitives/runtime" }
|
||||||
sp-utils = { version = "2.0.0-alpha.5", path = "../../primitives/utils" }
|
sp-utils = { version = "2.0.0-alpha.5", path = "../../primitives/utils" }
|
||||||
|
sp-version = { version = "2.0.0-alpha.5", path = "../../primitives/version" }
|
||||||
sp-core = { version = "2.0.0-alpha.5", path = "../../primitives/core" }
|
sp-core = { version = "2.0.0-alpha.5", path = "../../primitives/core" }
|
||||||
sc-service = { version = "0.8.0-alpha.5", default-features = false, path = "../service" }
|
sc-service = { version = "0.8.0-alpha.5", default-features = false, path = "../service" }
|
||||||
sp-state-machine = { version = "0.8.0-alpha.5", path = "../../primitives/state-machine" }
|
sp-state-machine = { version = "0.8.0-alpha.5", path = "../../primitives/state-machine" }
|
||||||
|
|||||||
@@ -134,8 +134,12 @@ impl<C: SubstrateCli> Runner<C> {
|
|||||||
|
|
||||||
/// A helper function that runs an `AbstractService` with tokio and stops if the process receives
|
/// A helper function that runs an `AbstractService` with tokio and stops if the process receives
|
||||||
/// the signal `SIGTERM` or `SIGINT`.
|
/// the signal `SIGTERM` or `SIGINT`.
|
||||||
pub fn run_node<FNL, FNF, SL, SF>(self, new_light: FNL, new_full: FNF) -> Result<()>
|
pub fn run_node<FNL, FNF, SL, SF>(
|
||||||
where
|
self,
|
||||||
|
new_light: FNL,
|
||||||
|
new_full: FNF,
|
||||||
|
runtime_version: sp_version::RuntimeVersion,
|
||||||
|
) -> Result<()> where
|
||||||
FNL: FnOnce(Configuration) -> sc_service::error::Result<SL>,
|
FNL: FnOnce(Configuration) -> sc_service::error::Result<SL>,
|
||||||
FNF: FnOnce(Configuration) -> sc_service::error::Result<SF>,
|
FNF: FnOnce(Configuration) -> sc_service::error::Result<SF>,
|
||||||
SL: AbstractService + Unpin,
|
SL: AbstractService + Unpin,
|
||||||
@@ -152,6 +156,7 @@ impl<C: SubstrateCli> Runner<C> {
|
|||||||
info!("📋 Chain specification: {}", self.config.chain_spec.name());
|
info!("📋 Chain specification: {}", self.config.chain_spec.name());
|
||||||
info!("🏷 Node name: {}", self.config.network.node_name);
|
info!("🏷 Node name: {}", self.config.network.node_name);
|
||||||
info!("👤 Role: {}", self.config.display_role());
|
info!("👤 Role: {}", self.config.display_role());
|
||||||
|
info!("⛓ Native runtime: {}", runtime_version);
|
||||||
|
|
||||||
match self.config.role {
|
match self.config.role {
|
||||||
Role::Light => self.run_service_until_exit(new_light),
|
Role::Light => self.run_service_until_exit(new_light),
|
||||||
|
|||||||
Reference in New Issue
Block a user