Introduce new testnet ready for 0.10 (#1677)

* Introduce new testnet ready for 0.10

* Upgraded dd spec
This commit is contained in:
Gav Wood
2019-02-20 16:16:35 +01:00
committed by Arkadiy Paronyan
parent bd89003e43
commit c3e6572886
7 changed files with 103 additions and 102 deletions
+4 -4
View File
@@ -37,8 +37,8 @@ pub enum ChainSpec {
Development,
/// Whatever the current runtime is, with simple Alice/Bob auths.
LocalTestnet,
/// The Charred Cherry testnet.
CharredCherry,
/// The Dried Danta testnet.
DriedDanta,
/// Whatever the current runtime is with the "global testnet" defaults.
StagingTestnet,
}
@@ -47,7 +47,7 @@ pub enum ChainSpec {
impl ChainSpec {
pub(crate) fn load(self) -> Result<chain_spec::ChainSpec, String> {
Ok(match self {
ChainSpec::CharredCherry => chain_spec::charred_cherry_config()?,
ChainSpec::DriedDanta => chain_spec::dried_danta_config()?,
ChainSpec::Development => chain_spec::development_config(),
ChainSpec::LocalTestnet => chain_spec::local_testnet_config(),
ChainSpec::StagingTestnet => chain_spec::staging_testnet_config(),
@@ -58,7 +58,7 @@ impl ChainSpec {
match s {
"dev" => Some(ChainSpec::Development),
"local" => Some(ChainSpec::LocalTestnet),
"" | "cherry" | "charred-cherry" => Some(ChainSpec::CharredCherry),
"" | "danta" | "dried-danta" => Some(ChainSpec::DriedDanta),
"staging" => Some(ChainSpec::StagingTestnet),
_ => None,
}