Skip to content

Commit

Permalink
node: Restore node information from the environment variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
shamil-gadelshin committed Aug 13, 2020
1 parent c74ec0d commit abc363b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,6 @@ impl SubstrateCli for Cli {
"Joystream Node"
}

fn impl_version() -> &'static str {
"3.0.0"
}

fn description() -> &'static str {
"Joystream substrate node"
}

fn author() -> &'static str {
"Joystream contributors"
}

fn support_url() -> &'static str {
"https://www.joystream.org/"
}
Expand All @@ -53,6 +41,18 @@ impl SubstrateCli for Cli {
"joystream-node"
}

fn impl_version() -> &'static str {
env!("SUBSTRATE_CLI_IMPL_VERSION")
}

fn description() -> &'static str {
env!("CARGO_PKG_DESCRIPTION")
}

fn author() -> &'static str {
env!("CARGO_PKG_AUTHORS")
}

fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
Ok(match id {
"dev" => Box::new(chain_spec::Alternative::Development.load()?),
Expand Down

0 comments on commit abc363b

Please sign in to comment.