Skip to content

Commit bab0a9d

Browse files
committed
Minimal testnet
1 parent 4699014 commit bab0a9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/local_testnet_pos/start_local_testnet.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ GETH_http_base=8545
9898
GETH_el_base=8645
9999

100100
# Make Geth config with genesis time and TTD.
101-
SHANGHAI_TIME=$(($GENESIS_TIME + $CAPELLA_FORK_EPOCH * $SECONDS_PER_SLOT * 32))
102-
echo "Shangai time = $SHANGHAI_TIME"
101+
SHANGHAI_TIME=$(($GENESIS_TIME + $CAPELLA_FORK_EPOCH * $SECONDS_PER_SLOT * 8))
102+
echo "Shanghai time = $SHANGHAI_TIME"
103103
cat ./config/geth.json.template \
104104
| sed "s/SHANGHAI_BLOCK_TEMPLATE/$SHANGHAI_TIME/" \
105105
| sed "s/TERMINAL_TOTAL_DIFFICULTY_TEMPLATE/$TERMINAL_TOTAL_DIFFICULTY/" > ./config/geth.json

scripts/local_testnet_pos/vars.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ NETWORK_ID=4242
3232
# Hard fork configuration
3333
ALTAIR_FORK_EPOCH=0
3434
MERGE_FORK_EPOCH=0
35-
CAPELLA_FORK_EPOCH=1
35+
CAPELLA_FORK_EPOCH=20
3636

3737
TERMINAL_TOTAL_DIFFICULTY=15000000
3838

3939
# Spec version (mainnet or minimal)
40-
SPEC_PRESET=mainnet
40+
SPEC_PRESET=minimal
4141

4242
# Seconds per Eth2 slot
4343
SECONDS_PER_SLOT=6

0 commit comments

Comments
 (0)