Skip to content

Commit

Permalink
updating scripts for capella/shanghai
Browse files Browse the repository at this point in the history
  • Loading branch information
parithosh committed Dec 16, 2022
1 parent abc93fd commit 0dea85b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion apps/el-gen/genesis_besu.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"berlinBlock":0,
"londonBlock":0,
"preMergeForkBlock":0,
"terminalTotalDifficulty":0
"terminalTotalDifficulty":0,
"shanghaiTime": int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['capella_fork_epoch']) * 32 * 12),
},
"alloc": {
# Allocate 1 wei to all possible pre-compiles.
Expand Down
3 changes: 2 additions & 1 deletion apps/el-gen/genesis_chainspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"eip1559Transition": "0x0",
"eip3198Transition": "0x0",
"eip3529Transition": "0x0",
"eip3541Transition": "0x0"
"eip3541Transition": "0x0",
"eip4895TransitionTimestamp": hex(int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['capella_fork_epoch']) * 32 * 12)),
},
"genesis": {
"seal": {
Expand Down
3 changes: 2 additions & 1 deletion apps/el-gen/genesis_geth.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"berlinBlock":0,
"londonBlock":0,
"mergeForkBlock":0,
"terminalTotalDifficulty":0
"terminalTotalDifficulty":0,
"shanghaiTime": int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['capella_fork_epoch']) * 32 * 12),
},
"alloc": {
# Allocate 1 wei to all possible pre-compiles.
Expand Down
2 changes: 2 additions & 0 deletions config-example/el/genesis-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ el_premine:
"m/44'/60'/0'/0/5": 1000000000ETH
el_premine_addrs: {}
genesis_timestamp: ${GENESIS_TIMESTAMP}
genesis_delay: ${GENESIS_DELAY}
capella_fork_epoch: ${CAPELLA_FORK_EPOCH}
4 changes: 2 additions & 2 deletions config-example/values.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export GENESIS_FORK_VERSION="0x10000040"
export ALTAIR_FORK_VERSION="0x20000040"
export BELLATRIX_FORK_VERSION="0x30000040"
export CAPELLA_FORK_VERSION="0x40000040"
export CAPELLA_FORK_EPOCH="18446744073709551615"
export CAPELLA_FORK_EPOCH="5"
export WITHDRAWAL_TYPE="0x01"
export WITHDRAWAL_ADDRESS=0xf97e180c050e5Ab072211Ad2C213Eb5AEE4DF134
export BEACON_STATIC_ENR="enr:-Iq4QMCTfIMXnow27baRUb35Q8iiFHSIDBJh6hQM5Axohhf4b6Kr_cOCu0htQ5WvVqKvFgY28893DHAg8gnBAXsAVqmGAX53x8JggmlkgnY0gmlwhLKAlv6Jc2VjcDI1NmsxoQK6S-Cii_KmfFdUJL2TANL3ksaKUnNXvTCv1tLwXs0QgIN1ZHCCIyk"
export GENESIS_TIMESTAMP=1662465600
export GENESIS_TIMESTAMP=1671192368
export GENESIS_DELAY=120

0 comments on commit 0dea85b

Please sign in to comment.