Skip to content

Commit

Permalink
make initial_authorities the initial collators
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA authored and F3Joule committed Sep 7, 2022
1 parent 1997d3f commit 8c1ddcd
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ pub fn development_config() -> ChainSpec {
(
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_collator_keys_from_seed("Alice"),
),
(
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_collator_keys_from_seed("Bob"),
),
(
get_account_id_from_seed::<sr25519::Public>("Charlie"),
get_collator_keys_from_seed("Charlie"),
)
],
vec![
Expand Down Expand Up @@ -290,17 +298,11 @@ fn parachain_genesis(
}).collect(),
},
parachain_info: subsocial_parachain_runtime::ParachainInfoConfig { parachain_id: id },
pallet_parachain_staking: subsocial_parachain_runtime::ParachainStakingConfig {
candidates: vec![
(
get_account_id_from_seed::<sr25519::Public>("Alice"),
2000 * UNIT,
),
(
get_account_id_from_seed::<sr25519::Public>("Bob"),
2000 * UNIT,
),
],
parachain_staking: subsocial_parachain_runtime::ParachainStakingConfig {
candidates: initial_authorities
.iter()
.map(|x| (x.0.clone(), 2000 * UNIT))
.collect(),
delegations: vec![],
inflation_config: subsocial_inflation_config(),
},
Expand Down

0 comments on commit 8c1ddcd

Please sign in to comment.