Skip to content

Commit

Permalink
Change Alice collator by Eve
Browse files Browse the repository at this point in the history
  • Loading branch information
goncer authored Mar 7, 2024
1 parent 4a0e327 commit b4c169d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
13 changes: 9 additions & 4 deletions node/src/chain_spec/mangata_kusama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ pub fn mangata_kusama_local_config() -> ChainSpec {
// initial collators.
vec![
(
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_collator_keys_from_seed("Alice"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
get_collator_keys_from_seed("Eve"),
),
(
get_account_id_from_seed::<sr25519::Public>("Bob"),
Expand All @@ -250,8 +250,13 @@ pub fn mangata_kusama_local_config() -> ChainSpec {
300_000_000__000_000_000_000_000_000u128,
get_account_id_from_seed::<sr25519::Public>("Alice"),
),
(
0u32,
300_000_000__000_000_000_000_000_000u128,
get_account_id_from_seed::<sr25519::Public>("Eve"),
),
// ETH
(1u32, 0u128, get_account_id_from_seed::<sr25519::Public>("Alice")),
(1u32, 0u128, get_account_id_from_seed::<sr25519::Public>("Eve")),
(
0u32,
100_000_000__000_000_000_000_000_000u128,
Expand All @@ -273,7 +278,7 @@ pub fn mangata_kusama_local_config() -> ChainSpec {
vec![
(
// Who gets to stake initially
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
// Id of MGA token,
0u32,
// How much mangata they pool
Expand Down
13 changes: 9 additions & 4 deletions node/src/chain_spec/mangata_rococo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ pub fn mangata_rococo_local_config(initial_collators_as_sequencers: bool) -> Cha
// initial collators.
vec![
(
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_collator_keys_from_seed("Alice"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
get_collator_keys_from_seed("Eve"),
),
(
get_account_id_from_seed::<sr25519::Public>("Bob"),
Expand All @@ -251,8 +251,13 @@ pub fn mangata_rococo_local_config(initial_collators_as_sequencers: bool) -> Cha
300_000_000__000_000_000_000_000_000u128,
get_account_id_from_seed::<sr25519::Public>("Alice"),
),
(
0u32,
300_000_000__000_000_000_000_000_000u128,
get_account_id_from_seed::<sr25519::Public>("Eve"),
),
// ETH
(1u32, 0u128, get_account_id_from_seed::<sr25519::Public>("Alice")),
(1u32, 0u128, get_account_id_from_seed::<sr25519::Public>("Eve")),
(
0u32,
100_000_000__000_000_000_000_000_000u128,
Expand All @@ -274,7 +279,7 @@ pub fn mangata_rococo_local_config(initial_collators_as_sequencers: bool) -> Cha
vec![
(
// Who gets to stake initially
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
// Id of MGA token,
0u32,
// How much mangata they pool
Expand Down
6 changes: 3 additions & 3 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,16 +634,16 @@ mod tests {
crate::chain_spec::mangata_rococo::mangata_genesis(
vec![
(
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_collator_keys_from_seed("Alice"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
get_collator_keys_from_seed("Eve"),
),
(
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_collator_keys_from_seed("Bob"),
),
],
get_account_id_from_seed::<sr25519::Public>("Relay"),
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Eve"),
vec![],
vec![],
vec![],
Expand Down

0 comments on commit b4c169d

Please sign in to comment.