Fix workflow for local testnets; reset genesis.json after running script

This commit is contained in:
Pawan Dhananjay
2023-03-24 01:16:31 +05:30
parent 72d1f53873
commit 41f87aca18
2 changed files with 14 additions and 1 deletions

View File

@@ -49,6 +49,10 @@ exit_if_fails ../local_testnet/geth.sh $HOME/.lighthouse/local-testnet/geth_data
sleep 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
echo "Starting local beacon nodes"
exit_if_fails ../local_testnet/beacon_node.sh -d debug $HOME/.lighthouse/local-testnet/node_1 9000 8000 http://localhost:5000 $HOME/.lighthouse/local-testnet/geth_datadir1/geth/jwtsecret &> beacon.log &