-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure hf from shapella to dencun
- Loading branch information
1 parent
669e087
commit 1b5fa54
Showing
5 changed files
with
40 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -eux | ||
|
||
GENESIS_TIMESTAMP=${GENESIS_TIMESTAMP} | ||
EPOCH_CANCUN=${EPOCH_DENCUN} | ||
|
||
MINIMAL_SECONDS_PER_SLOT=6 | ||
MINIMAL_SLOTS_PER_EPOCH=8 | ||
|
||
CANCUN_TIMESTAMP_DIFF=$((EPOCH_CANCUN * MINIMAL_SECONDS_PER_SLOT * MINIMAL_SLOTS_PER_EPOCH)) | ||
CANCUN_TIMESTAMP=$((GENESIS_TIMESTAMP + CANCUN_TIMESTAMP_DIFF)) | ||
|
||
sed -i.bak s/"\"cancunTime\": 0/\"cancunTime\": ${CANCUN_TIMESTAMP}/" /execution/genesis.json | ||
|
||
cat /execution/genesis.json | ||
|
||
# Init | ||
geth --datadir=/execution init --state.scheme hash --db.engine=leveldb /execution/genesis.json | ||
|
||
# Import keys | ||
geth --datadir=/execution account import --password /dev/null /config/dev-key0.prv | ||
geth --datadir=/execution account import --password /dev/null /config/dev-key1.prv | ||
|
||
geth $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters