Change ChainSpec::from_genesis for Rialto and Millau chains to reflect the chain names. (#1079)

* Changing chain_spec of Rialto and Millau chains to retrieve their respective name

* Adding development as well

* Addressing PR feedback

Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com>
This commit is contained in:
Hector Bulgarini
2021-08-06 10:23:09 -03:00
committed by Bastian Köcher
parent 75df85f52a
commit c99fb933ca
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -81,8 +81,8 @@ impl Alternative {
); );
match self { match self {
Alternative::Development => ChainSpec::from_genesis( Alternative::Development => ChainSpec::from_genesis(
"Development", "Millau Development",
"dev", "millau_dev",
sc_service::ChainType::Development, sc_service::ChainType::Development,
|| { || {
testnet_genesis( testnet_genesis(
@@ -107,8 +107,8 @@ impl Alternative {
None, None,
), ),
Alternative::LocalTestnet => ChainSpec::from_genesis( Alternative::LocalTestnet => ChainSpec::from_genesis(
"Local Testnet", "Millau Local",
"local_testnet", "millau_local",
sc_service::ChainType::Local, sc_service::ChainType::Local,
|| { || {
testnet_genesis( testnet_genesis(
+4 -4
View File
@@ -82,8 +82,8 @@ impl Alternative {
); );
match self { match self {
Alternative::Development => ChainSpec::from_genesis( Alternative::Development => ChainSpec::from_genesis(
"Development", "Rialto Development",
"dev", "rialto_dev",
sc_service::ChainType::Development, sc_service::ChainType::Development,
|| { || {
testnet_genesis( testnet_genesis(
@@ -108,8 +108,8 @@ impl Alternative {
None, None,
), ),
Alternative::LocalTestnet => ChainSpec::from_genesis( Alternative::LocalTestnet => ChainSpec::from_genesis(
"Local Testnet", "Rialto Local",
"local_testnet", "rialto_local",
sc_service::ChainType::Local, sc_service::ChainType::Local,
|| { || {
testnet_genesis( testnet_genesis(