From b7e6afab6949ebb02a5888e7f6cff84c7eb8b3c2 Mon Sep 17 00:00:00 2001 From: protolambda Date: Sun, 21 Jan 2024 00:37:25 -0500 Subject: [PATCH] generate genesis.ssz, work in progress devnet setup --- bedrock-devnet/devnet/__init__.py | 6 ++++++ ops-bedrock/docker-compose.yml | 4 ++-- ops-bedrock/l1-generate-beacon-genesis.sh | 14 ++++++++++++++ ops-bedrock/mnemonics.yaml | 3 +++ 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 ops-bedrock/l1-generate-beacon-genesis.sh create mode 100644 ops-bedrock/mnemonics.yaml diff --git a/bedrock-devnet/devnet/__init__.py b/bedrock-devnet/devnet/__init__.py index d0e51f821071..6f2ddaee11fa 100644 --- a/bedrock-devnet/devnet/__init__.py +++ b/bedrock-devnet/devnet/__init__.py @@ -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 diff --git a/ops-bedrock/docker-compose.yml b/ops-bedrock/docker-compose.yml index e2a321854eaa..8e4f31c18d94 100644 --- a/ops-bedrock/docker-compose.yml +++ b/ops-bedrock/docker-compose.yml @@ -43,7 +43,7 @@ services: - l1 build: context: . - dockerfile: l1-lighthouse-bn.Dockerfile + dockerfile: l1-lighthouse-src.Dockerfile ports: - "9000:9000" - "5052:5052" @@ -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: diff --git a/ops-bedrock/l1-generate-beacon-genesis.sh b/ops-bedrock/l1-generate-beacon-genesis.sh new file mode 100644 index 000000000000..6e969c60b32c --- /dev/null +++ b/ops-bedrock/l1-generate-beacon-genesis.sh @@ -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 diff --git a/ops-bedrock/mnemonics.yaml b/ops-bedrock/mnemonics.yaml new file mode 100644 index 000000000000..f97b779ee784 --- /dev/null +++ b/ops-bedrock/mnemonics.yaml @@ -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