Skip to content

Commit

Permalink
Merge pull request #89 from ethpandaops/pk910/genesis-gaslimit
Browse files Browse the repository at this point in the history
Allow customization of genesis gas limit
  • Loading branch information
pk910 authored Jan 23, 2024
2 parents 6a80aa3 + e256abc commit 7f60f19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/el-gen/genesis_besu.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"baseFeePerGas": "0x3B9ACA00",
"difficulty": "0x01",
"extraData": "",
"gasLimit": "0x17D7840",
"gasLimit": hex(int(data['genesis_gaslimit'] if 'genesis_gaslimit' in data and data['genesis_gaslimit'] is not None else 25000000)),
"nonce": "0x1234",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
Expand Down
2 changes: 1 addition & 1 deletion apps/el-gen/genesis_chainspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"timestamp": hex(data['genesis_timestamp']),
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "",
"gasLimit": "0x17D7840"
"gasLimit": hex(int(data['genesis_gaslimit'] if 'genesis_gaslimit' in data and data['genesis_gaslimit'] is not None else 25000000))
},
"accounts": {
# Allocate 1 wei to all possible pre-compiles.
Expand Down
2 changes: 1 addition & 1 deletion apps/el-gen/genesis_geth.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"coinbase": "0x0000000000000000000000000000000000000000",
"difficulty": "0x01",
"extraData": "",
"gasLimit": "0x17D7840",
"gasLimit": hex(int(data['genesis_gaslimit'] if 'genesis_gaslimit' in data and data['genesis_gaslimit'] is not None else 25000000)),
"nonce": "0x1234",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
Expand Down
1 change: 1 addition & 0 deletions config-example/el/genesis-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ el_premine:
el_premine_addrs: {}
genesis_timestamp: ${GENESIS_TIMESTAMP}
genesis_delay: ${GENESIS_DELAY}
genesis_gaslimit: ${GENESIS_GASLIMIT}
slot_duration_in_seconds: ${SLOT_DURATION_IN_SECONDS}
deneb_fork_epoch: ${DENEB_FORK_EPOCH}
1 change: 1 addition & 0 deletions config-example/values.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export BEACON_STATIC_ENR="enr:-Iq4QJk4WqRkjsX5c2CXtOra6HnxN-BMXnWhmhEQO9Bn9iABTJ
#export SHADOW_FORK_RPC="http://docker.for.mac.localhost:8545"
export GENESIS_TIMESTAMP=0
export GENESIS_DELAY=60
export GENESIS_GASLIMIT=25000000
export MAX_CHURN=8
export EJECTION_BALANCE=16000000000
export ETH1_FOLLOW_DISTANCE=2048

0 comments on commit 7f60f19

Please sign in to comment.