Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
fbfcaa17
Unverified
Commit
fbfcaa17
authored
Jan 17, 2019
by
asynchronous rob
Committed by
GitHub
Jan 17, 2019
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
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
cli/src/chain_spec.rs
View file @
fbfcaa17
...
...
@@ -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
,
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment