Skip to content
Snippets Groups Projects
Commit 7ac1fe9c 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 bf63c5f9
Branches
No related merge requests found
......@@ -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,
}
}
......
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