From c4870fa97c9779942a7b84b79dfd81fdbcb761b7 Mon Sep 17 00:00:00 2001 From: mohaijiang Date: Wed, 19 Oct 2022 14:02:52 +0800 Subject: [PATCH] update chain_spec.rs --- bin/node/cli/src/chain_spec.rs | 27 +++------------------------ bin/node/cli/src/command.rs | 1 - 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/bin/node/cli/src/chain_spec.rs b/bin/node/cli/src/chain_spec.rs index 7bc90e497..6df8833e8 100644 --- a/bin/node/cli/src/chain_spec.rs +++ b/bin/node/cli/src/chain_spec.rs @@ -553,10 +553,10 @@ fn hamster_testnet_config_genesis() -> GenesisConfig { let endowed_accounts: Vec = vec![root_key.clone()]; - newtouch_genesis(initial_authorities, vec![], root_key, Some(endowed_accounts)) + hamster_genesis(initial_authorities, vec![], root_key, Some(endowed_accounts)) } -/// newtouch testnet config. +/// hamster testnet config. pub fn hamster_testnet_config() -> ChainSpec { let boot_nodes = vec![ ]; @@ -578,29 +578,8 @@ pub fn hamster_testnet_config() -> ChainSpec { } -/// newtouch testnet config. -pub fn newtouch_mainnet_config() -> ChainSpec { - let boot_nodes = vec![ - ]; - ChainSpec::from_genesis( - "Newtouch MainNet", - "newtouch_mainnet", - ChainType::Live, - hamster_testnet_config_genesis, - boot_nodes, - Some( - TelemetryEndpoints::new(vec![(STAGING_TELEMETRY_URL.to_string(), 0)]) - .expect("Staging telemetry url is valid; qed"), - ), - None, - None, - None, - Default::default(), - ) -} - /// Helper function to create GenesisConfig for testing -pub fn newtouch_genesis( +pub fn hamster_genesis( initial_authorities: Vec<( AccountId, AccountId, diff --git a/bin/node/cli/src/command.rs b/bin/node/cli/src/command.rs index 31324cd7a..696350b44 100644 --- a/bin/node/cli/src/command.rs +++ b/bin/node/cli/src/command.rs @@ -68,7 +68,6 @@ impl SubstrateCli for Cli { "fir" | "flaming-fir" => Box::new(chain_spec::flaming_fir_config()?), "staging" => Box::new(chain_spec::staging_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))?), };