Skip to content

Commit

Permalink
Merge pull request #36 from ethpandaops/barnabasbusa-patch-1
Browse files Browse the repository at this point in the history
Update genesis-config.yaml
  • Loading branch information
barnabasbusa authored Jun 7, 2023
2 parents f2026f4 + b5922e9 commit 546289f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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 @@ -117,5 +117,5 @@
out["alloc"][key] = {"balance": weival}

out['config']['ethash'] = {}
out['config']['cancunTime'] = int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['dencun_fork_epoch']) * 32 * 12)
out['config']['cancunTime'] = int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['deneb_fork_epoch']) * 32 * 12)
print(json.dumps(out, indent=' '))
2 changes: 1 addition & 1 deletion apps/el-gen/genesis_chainspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,5 @@
weival = value.replace('ETH', '0' * 18)
out["accounts"][key] = {"balance": weival}

out['params']['eip4844TransitionTimestamp']= hex(int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['dencun_fork_epoch']) * 32 * 12))
out['params']['eip4844TransitionTimestamp']= hex(int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['deneb_fork_epoch']) * 32 * 12))
print(json.dumps(out, indent=' '))
2 changes: 1 addition & 1 deletion apps/el-gen/genesis_geth.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@
weival = value.replace('ETH', '0' * 18)
out["alloc"][key] = {"balance": weival}

out['config']['cancunTime'] = int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['dencun_fork_epoch']) * 32 * 12)
out['config']['cancunTime'] = int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['deneb_fork_epoch']) * 32 * 12)
print(json.dumps(out, indent=' '))
2 changes: 1 addition & 1 deletion config-example/el/genesis-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ el_premine_addrs: {}
genesis_timestamp: ${GENESIS_TIMESTAMP}
genesis_delay: ${GENESIS_DELAY}
capella_fork_epoch: ${CAPELLA_FORK_EPOCH}
dencun_fork_epoch: ${DENCUN_FORK_EPOCH}
deneb_fork_epoch: ${DENEB_FORK_EPOCH}

0 comments on commit 546289f

Please sign in to comment.