Skip to content

Commit

Permalink
rename devnet to testnet (#578)
Browse files Browse the repository at this point in the history
* rename devnet to testnet

* missed
  • Loading branch information
JesseAbram authored Jan 5, 2024
1 parent 1363f44 commit 48f50de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion node/cli/src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use crate::chain_spec::{
testing, testnet_genesis,
};

pub fn devnet_config_genesis() -> RuntimeGenesisConfig {
pub fn testnet_config_genesis() -> RuntimeGenesisConfig {
#[rustfmt::skip]
// stash, controller, session-key
// generated with secret:
Expand Down
8 changes: 4 additions & 4 deletions node/cli/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,12 +863,12 @@ pub fn testing_config() -> ChainSpec {
}

/// Development config (single validator Alice)
pub fn devnet_config() -> ChainSpec {
pub fn testnet_config() -> ChainSpec {
ChainSpec::from_genesis(
"EntropyDevnet",
"EDev",
"EntropyTestnet",
"ETest",
ChainType::Live,
admin::devnet_config_genesis,
admin::testnet_config_genesis,
vec![],
Some(
TelemetryEndpoints::new(vec![(STAGING_TELEMETRY_URL.to_string(), 0)])
Expand Down
2 changes: 1 addition & 1 deletion node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl SubstrateCli for Cli {
"test" => Box::new(chain_spec::testing_config()),
"local-devnet" => Box::new(chain_spec::local_devnet_config()),
"" | "local" => Box::new(chain_spec::local_testnet_config()),
"devnet" => Box::new(chain_spec::devnet_config()),
"testnet" => Box::new(chain_spec::testnet_config()),
path => {
Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?)
},
Expand Down

0 comments on commit 48f50de

Please sign in to comment.