mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 13:24:39 +00:00
Fix workflow for local testnets; reset genesis.json after running script
This commit is contained in:
11
.github/workflows/local-testnet.yml
vendored
11
.github/workflows/local-testnet.yml
vendored
@@ -26,7 +26,16 @@ jobs:
|
|||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install ganache
|
- name: Install ganache
|
||||||
run: npm install ganache@latest --global
|
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
|
- name: Install GNU sed & GNU grep
|
||||||
run: |
|
run: |
|
||||||
brew install gnu-sed grep
|
brew install gnu-sed grep
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ exit_if_fails ../local_testnet/geth.sh $HOME/.lighthouse/local-testnet/geth_data
|
|||||||
|
|
||||||
sleep 20
|
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"
|
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 &
|
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 &
|
||||||
|
|||||||
Reference in New Issue
Block a user