Unverified Commit fbfcaa17 authored by asynchronous rob's avatar asynchronous rob Committed by GitHub
Browse files

default to alexander testnet (#83)

* default to alexander testnet

* use empty pattern-match
parent 7d290829
Pipeline #28505 passed with stages
in 13 minutes and 1 second
......@@ -32,6 +32,12 @@ pub enum ChainSpec {
StagingTestnet,
}
impl Default for ChainSpec {
fn default() -> Self {
ChainSpec::Alexander
}
}
/// Get a chain config from a spec setting.
impl ChainSpec {
pub(crate) fn load(self) -> Result<service::ChainSpec, String> {
......@@ -49,6 +55,7 @@ impl ChainSpec {
"local" => Some(ChainSpec::LocalTestnet),
"poc-3" | "alex" | "alexander" => Some(ChainSpec::Alexander),
"staging" => Some(ChainSpec::StagingTestnet),
"" => Some(ChainSpec::default()),
_ => None,
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment