Skip to content

Commit

Permalink
update chain_spec.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mohaijiang committed Oct 18, 2022
1 parent 7e2a166 commit 808e0b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions bin/node/cli/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ pub fn local_testnet_config() -> ChainSpec {
)
}

fn newtouch_testnet_config_genesis() -> GenesisConfig {
fn hamster_testnet_config_genesis() -> GenesisConfig {
#[rustfmt::skip]
// stash, controller,
// generated with secret:
Expand Down Expand Up @@ -557,14 +557,14 @@ fn newtouch_testnet_config_genesis() -> GenesisConfig {
}

/// newtouch testnet config.
pub fn newtouch_testnet_config() -> ChainSpec {
pub fn hamster_testnet_config() -> ChainSpec {
let boot_nodes = vec![
];
ChainSpec::from_genesis(
"Newtouch Testnet",
"newtouch_testnet",
"Hamster Testnet",
"hamster_testnet",
ChainType::Live,
newtouch_testnet_config_genesis,
hamster_testnet_config_genesis,
boot_nodes,
Some(
TelemetryEndpoints::new(vec![(STAGING_TELEMETRY_URL.to_string(), 0)])
Expand All @@ -586,7 +586,7 @@ pub fn newtouch_mainnet_config() -> ChainSpec {
"Newtouch MainNet",
"newtouch_mainnet",
ChainType::Live,
newtouch_testnet_config_genesis,
hamster_testnet_config_genesis,
boot_nodes,
Some(
TelemetryEndpoints::new(vec![(STAGING_TELEMETRY_URL.to_string(), 0)])
Expand Down
2 changes: 1 addition & 1 deletion bin/node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl SubstrateCli for Cli {
"local" => Box::new(chain_spec::local_testnet_config()),
"fir" | "flaming-fir" => Box::new(chain_spec::flaming_fir_config()?),
"staging" => Box::new(chain_spec::staging_testnet_config()),
"newtouch" => Box::new(chain_spec::newtouch_testnet_config()),
"hamster_testnet" => Box::new(chain_spec::hamster_testnet_config()),
"newtouch_main" => Box::new(chain_spec::newtouch_mainnet_config()),
path =>
Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?),
Expand Down

0 comments on commit 808e0b5

Please sign in to comment.