diff --git a/.github/workflows/local-testnet.yml b/.github/workflows/local-testnet.yml index 66051af3b7..8b6728c795 100644 --- a/.github/workflows/local-testnet.yml +++ b/.github/workflows/local-testnet.yml @@ -26,7 +26,16 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install ganache run: npm install ganache@latest --global - + - name: Install geth + run: | + sudo add-apt-repository -y ppa:ethereum/ethereum + sudo apt-get update + sudo apt-get install ethereum + if: matrix.os == 'ubuntu-22.04' + run: | + brew tap ethereum/ethereum + brew install ethereum + if: matrix.os == 'macos-12' - name: Install GNU sed & GNU grep run: | brew install gnu-sed grep diff --git a/scripts/tests/doppelganger_protection.sh b/scripts/tests/doppelganger_protection.sh index 9d90a87bcc..e9988e1565 100755 --- a/scripts/tests/doppelganger_protection.sh +++ b/scripts/tests/doppelganger_protection.sh @@ -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 &