Skip to content

Commit

Permalink
generate genesis.ssz, work in progress devnet setup
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda committed Jan 21, 2024
1 parent d46c95a commit b7e6afa
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
6 changes: 6 additions & 0 deletions bedrock-devnet/devnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ def devnet_deploy(paths):
'--outfile.l1', paths.genesis_l1_path,
], cwd=paths.op_node_dir)

run_command([
'sh', 'l1-generate-beacon-genesis.sh',
], cwd=paths.ops_bedrock_dir)

if True: raise Exception("TODO fix me")

log.info('Starting L1.')
run_command(['docker', 'compose', 'up', '-d', 'l1'], cwd=paths.ops_bedrock_dir, env={
'PWD': paths.ops_bedrock_dir
Expand Down
4 changes: 2 additions & 2 deletions ops-bedrock/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
- l1
build:
context: .
dockerfile: l1-lighthouse-bn.Dockerfile
dockerfile: l1-lighthouse-src.Dockerfile
ports:
- "9000:9000"
- "5052:5052"
Expand All @@ -62,7 +62,7 @@ services:
- l1-bn
build:
context: .
dockerfile: l1-lighthouse-vc.Dockerfile
dockerfile: l1-lighthouse-src.Dockerfile
volumes:
- "l1_vc_data:/db"
environment:
Expand Down
14 changes: 14 additions & 0 deletions ops-bedrock/l1-generate-beacon-genesis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

eth2-testnet-genesis capella \
--config=./beacon-data/config.yaml \
--preset-phase0=minimal \
--preset-altair=minimal \
--preset-bellatrix=minimal \
--preset-capella=minimal \
--preset-deneb=minimal \
--eth1-config=../.devnet/genesis-l1.json \
--state-output=../.devnet/genesis-l1.ssz \
--tranches-dir=../.devnet/tranches \
--mnemonics=mnemonics.yaml \
--eth1-withdrawal-address=0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
3 changes: 3 additions & 0 deletions ops-bedrock/mnemonics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# put our 64 test validators into the devnet genesis
- mnemonic: "test test test test test test test test test test test junk"
count: 64

0 comments on commit b7e6afa

Please sign in to comment.