diff --git a/scripts/local_testnet/genesis.json b/scripts/local_testnet/genesis.json index 7f6bc771b..9ef616388 100644 --- a/scripts/local_testnet/genesis.json +++ b/scripts/local_testnet/genesis.json @@ -12,8 +12,8 @@ "berlinBlock": 0, "londonBlock": 0, "mergeNetsplitBlock": 0, - "shanghaiTime": 1670438240, - "shardingForkTime": 1670438336, + "shanghaiTime": 0, + "shardingForkTime": 0, "terminalTotalDifficulty": 0 }, "alloc": { diff --git a/scripts/local_testnet/start_local_testnet.sh b/scripts/local_testnet/start_local_testnet.sh index 4c07917c6..aa780339b 100755 --- a/scripts/local_testnet/start_local_testnet.sh +++ b/scripts/local_testnet/start_local_testnet.sh @@ -125,6 +125,10 @@ done sleeping 20 +# Reset the `genesis.json` config file fork times. +sed -i 's/"shanghaiTime".*$/"shanghaiTime": 0,/g' genesis.json +sed -i 's/"shardingForkTime".*$/"shardingForkTime": 0,/g' genesis.json + for (( bn=1; bn<=$BN_COUNT; bn++ )); do execute_command_add_PID json_snoop_$bn.log json_rpc_snoop -p $((EL_base_auth_http + $bn)) -b 0.0.0.0 http://localhost:$((EL_base_auth_http + $bn + 10))