Skip to content

Commit

Permalink
Merge pull request OffchainLabs#15 from kasey/start-at-capella
Browse files Browse the repository at this point in the history
start at capella fork with updated prysmctl
  • Loading branch information
rauljordan authored Apr 14, 2023
2 parents f39400b + 7a6c35f commit 66c03db
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 94 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
13 changes: 6 additions & 7 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 @@ -21,12 +20,10 @@ services:
- --authrpc.jwtsecret=/execution/jwtsecret
- --datadir=/execution
- --allow-insecure-unlock
- --unlock=0x123463a4b065722e99115d6c222f267d9cabb524
- --unlock=0x878705ba3f8bc32fcf7f4caa1a35e72af65cf766
- --password=/execution/geth_password.txt
- --nodiscover
- --syncmode=full
- --mine
- --miner.etherbase=0x123463a4b065722e99115d6c222f267d9cabb524
ports:
- 8551:8551
- 8545:8545
Expand All @@ -38,18 +35,21 @@ 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-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 +67,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=1337
- --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
144 changes: 61 additions & 83 deletions execution/genesis.json
100644 → 100755

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions execution/geth_password.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
password
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"878705ba3f8bc32fcf7f4caa1a35e72af65cf766","crypto":{"cipher":"aes-128-ctr","ciphertext":"f02daebbf456faf787c5cd61a33ce780857c1ca10b00972aa451f0e9688e4ead","cipherparams":{"iv":"ef1668814155862f0653f15dae845e58"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"55e5ee70d3e882d2f00a073eda252ff01437abf51d7bfa76c06dcc73f7e8f1a3"},"mac":"d8d04625d0769fe286756734f946c78663961b74f0caaff1d768f0d255632f04"},"id":"5fb9083a-a221-412b-b0e0-921e22cc9645","version":3}

This file was deleted.

0 comments on commit 66c03db

Please sign in to comment.