Skip to content

Commit

Permalink
Merge pull request #81 from ethpandaops/bbusa/update-genesis-time
Browse files Browse the repository at this point in the history
feat: make it possible to add genesis delay to genesis time
  • Loading branch information
barnabasbusa authored Dec 5, 2023
2 parents 4a3e3c5 + 5658a28 commit 3cd9f19
Show file tree
Hide file tree
Showing 3 changed files with 3 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 @@ -112,7 +112,7 @@
"nonce": "0x1234",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp": str(data['genesis_timestamp'])
"timestamp": str(data['genesis_timestamp'] + data['genesis_delay'])
}

for key, value in data['el_premine'].items():
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 @@ -90,7 +90,7 @@
},
"difficulty": "0x01",
"author": "0x0000000000000000000000000000000000000000",
"timestamp": hex(data['genesis_timestamp']),
"timestamp": hex(int(data['genesis_timestamp']) + int(data['genesis_delay'])),
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "",
"gasLimit": "0x17D7840"
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 @@ -112,7 +112,7 @@
"nonce": "0x1234",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp": str(data['genesis_timestamp'])
"timestamp": str(data['genesis_timestamp'] + data['genesis_delay'])
}

for key, value in data['el_premine'].items():
Expand Down

0 comments on commit 3cd9f19

Please sign in to comment.