Commit 219e50a2 authored by Bastian Köcher's avatar Bastian Köcher Committed by André Silva
Browse files

Fix chainspec and runtime (#326)

parent 414499ec
Pipeline #43122 passed with stages
in 14 minutes and 10 seconds
......@@ -380,8 +380,8 @@ construct_runtime!(
Authorship: authorship::{Module, Call, Storage},
Indices: indices,
Balances: balances,
Session: session::{Module, Call, Storage, Event, Config<T>},
Staking: staking::{default, OfflineWorker},
Session: session::{Module, Call, Storage, Event, Config<T>},
Democracy: democracy::{Module, Call, Storage, Config, Event<T>},
Council: council::{Module, Call, Storage, Event<T>},
CouncilMotions: council_motions::{Module, Call, Storage, Event<T>, Origin<T>},
......
......@@ -93,7 +93,7 @@ fn staging_testnet_config_genesis() -> GenesisConfig {
}),
session: Some(SessionConfig {
keys: initial_authorities.iter().map(|x| (
x.1.clone(),
x.0.clone(),
SessionKeys { ed25519: x.2.clone() },
)).collect::<Vec<_>>(),
}),
......@@ -106,7 +106,7 @@ fn staging_testnet_config_genesis() -> GenesisConfig {
offline_slash_grace: 4,
minimum_validator_count: 4,
stakers: initial_authorities.iter().map(|x| (x.0.clone(), x.1.clone(), STASH, StakerStatus::Validator)).collect(),
invulnerables: initial_authorities.iter().map(|x| x.1.clone()).collect(),
invulnerables: initial_authorities.iter().map(|x| x.0.clone()).collect(),
}),
democracy: Some(Default::default()),
council_seats: Some(CouncilSeatsConfig {
......@@ -213,7 +213,7 @@ pub fn testnet_genesis(
}),
session: Some(SessionConfig {
keys: initial_authorities.iter().map(|x| (
x.1.clone(),
x.0.clone(),
SessionKeys { ed25519: x.2.clone() },
)).collect::<Vec<_>>(),
}),
......@@ -228,7 +228,7 @@ pub fn testnet_genesis(
stakers: initial_authorities.iter()
.map(|x| (x.0.clone(), x.1.clone(), STASH, StakerStatus::Validator))
.collect(),
invulnerables: initial_authorities.iter().map(|x| x.1.clone()).collect(),
invulnerables: initial_authorities.iter().map(|x| x.0.clone()).collect(),
}),
democracy: Some(DemocracyConfig::default()),
council_seats: Some(CouncilSeatsConfig {
......
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