Skip to content

Commit

Permalink
start at bellatrix by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kasey committed Apr 14, 2023
1 parent f39400b commit 9002090
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 66 deletions.
9 changes: 6 additions & 3 deletions consensus/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ PRESET_BASE: interop
GENESIS_FORK_VERSION: 0x20000089

# Altair
ALTAIR_FORK_EPOCH: 2
ALTAIR_FORK_EPOCH: 0
ALTAIR_FORK_VERSION: 0x20000090

# Merge
BELLATRIX_FORK_EPOCH: 4
BELLATRIX_FORK_EPOCH: 0
BELLATRIX_FORK_VERSION: 0x20000091
TERMINAL_TOTAL_DIFFICULTY: 50
TERMINAL_TOTAL_DIFFICULTY: 0

CAPELLA_FORK_EPOCH: 2
CAPELLA_FORK_VERSION: 0x20000092

# Time parameters
SECONDS_PER_SLOT: 12
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
volumes:
- ./execution:/execution
- ./execution/genesis.json:/execution/genesis.json

# Runs the go-ethereum execution client with the specified, unlocked account and necessary
# APIs to allow for proof-of-stake consensus via Prysm.
geth:
Expand All @@ -25,8 +24,6 @@ services:
- --password=/execution/geth_password.txt
- --nodiscover
- --syncmode=full
- --mine
- --miner.etherbase=0x123463a4b065722e99115d6c222f267d9cabb524
ports:
- 8551:8551
- 8545:8545
Expand All @@ -38,18 +35,22 @@ services:
- ./execution/geth_password.txt:/execution/geth_password.txt
- ./jwtsecret:/execution/jwtsecret

# Creates a genesis state for the beacon chain using a YAML configuration file and
#Creates a genesis state for the beacon chain using a YAML configuration file and
# a deterministic set of 64 validators.
create-beacon-chain-genesis:
image: "gcr.io/prysmaticlabs/prysm/cmd/prysmctl:latest"
command:
- testnet
- generate-genesis
- --fork=bellatrix
- --num-validators=64
- --output-ssz=/consensus/genesis.ssz
- --chain-config-file=/consensus/config.yml
- --geth-genesis-json-in=/execution/genesis.json
- --geth-genesis-json-out=/execution/genesis.json
volumes:
- ./consensus:/consensus
- ./execution:/execution

# Runs a Prysm beacon chain from a specified genesis state created in the previous step
# and connects to go-ethereum in the same network as the execution client.
Expand All @@ -67,11 +68,10 @@ services:
# The chain configuration file used for setting up Prysm
- --chain-config-file=/consensus/config.yml
# We specify the chain id used by our execution client
- --chain-id=32382
- --chain-id=${CHAIN_ID:-32382}
- --rpc-host=0.0.0.0
- --grpc-gateway-host=0.0.0.0
- --execution-endpoint=http://geth:8551
- --chain-id=32382
- --accept-terms-of-use
- --jwt-secret=/execution/jwtsecret
- --suggested-fee-recipient=0x123463a4b065722e99115d6c222f267d9cabb524
Expand Down
Loading

0 comments on commit 9002090

Please sign in to comment.