Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add changes for 3 collators setup #774

Draft
wants to merge 4 commits into
base: eth-rollup-develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- --rpc-cors=all
- --unsafe-rpc-external
- --node-key=0000000000000000000000000000000000000000000000000000000000000001
- --rpc-methods=unsafe
- --rpc-methods=unsafe
ports:
- 9944:9944
- 30333:30333
Expand All @@ -42,7 +42,25 @@ services:
- 9946:9944
volumes:
- data-baltathar:/data
node-charlieth:
build:
context: .
dockerfile: local.Dockerfile
image: ${NODE_IMAGE:-mangatasolutions/rollup-node:local}
command:
- --charlieth
- --chain=rollup-local-seq
- --base-path=/data
- --rpc-cors=all
- --unsafe-rpc-external
- --bootnodes=/dns/node-alice/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
- --rpc-methods=unsafe
ports:
- 9947:9944
volumes:
- data-baltathar:/data-charlieth

volumes:
data-alith:
data-baltathar:
data-charlieth:
12 changes: 12 additions & 0 deletions rollup/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ pub fn rollup_local_config(
get_account_id_from_seed::<ecdsa::Public>("Baltathar"),
authority_keys_from_seed("Baltathar"),
),
(
get_account_id_from_seed::<ecdsa::Public>("Charleth"),
authority_keys_from_seed("Charleth"),
),
],
// Sudo account
get_account_id_from_seed::<ecdsa::Public>("Alith"),
Expand Down Expand Up @@ -153,6 +157,14 @@ pub fn rollup_local_config(
// How much mangata they stake
80_000_000__000_000_000_000_000_000_u128,
),
(
// Who gets to stake initially
get_account_id_from_seed::<ecdsa::Public>("Charleth"),
// Id of MGA token,
0u32,
// How much mangata they stake
80_000_000__000_000_000_000_000_000_u128,
),
],
vec![
// Who gets to stake initially
Expand Down
Loading