A new substrate-node testnet for 1.0beta (#1280)

* Add new testnet

* Rename

* Update lib.rs

* Rename ctd.

* Remove BBQ Birch Testnet reference from Readme

* Fix comment

* Update keys
This commit is contained in:
Gav Wood
2018-12-17 18:57:07 +01:00
committed by GitHub
parent 1c104e0568
commit ac2c44f322
5 changed files with 102 additions and 95 deletions
+4 -4
View File
@@ -64,8 +64,8 @@ pub enum ChainSpec {
Development,
/// Whatever the current runtime is, with simple Alice/Bob auths.
LocalTestnet,
/// The BBQ Birch testnet.
BbqBirch,
/// The Charred Cherry testnet.
CharredCherry,
/// Whatever the current runtime is with the "global testnet" defaults.
StagingTestnet,
}
@@ -74,7 +74,7 @@ pub enum ChainSpec {
impl ChainSpec {
pub(crate) fn load(self) -> Result<chain_spec::ChainSpec, String> {
Ok(match self {
ChainSpec::BbqBirch => chain_spec::bbq_birch_config()?,
ChainSpec::CharredCherry => chain_spec::charred_cherry_config()?,
ChainSpec::Development => chain_spec::development_config(),
ChainSpec::LocalTestnet => chain_spec::local_testnet_config(),
ChainSpec::StagingTestnet => chain_spec::staging_testnet_config(),
@@ -85,7 +85,7 @@ impl ChainSpec {
match s {
"dev" => Some(ChainSpec::Development),
"local" => Some(ChainSpec::LocalTestnet),
"" | "bbq-birch" => Some(ChainSpec::BbqBirch),
"" | "cherry" | "charred-cherry" => Some(ChainSpec::CharredCherry),
"staging" => Some(ChainSpec::StagingTestnet),
_ => None,
}