Skip to content

Commit

Permalink
chore: fix local testnet dev scripts (#5719)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Jun 29, 2023
1 parent 9a0a031 commit a4c93c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 2 additions & 5 deletions scripts/dev/node1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GENESIS_TIME=$(date +%s)

packages/cli/bin/lodestar dev \
./lodestar dev \
--genesisValidators 8 \
--startValidators 0..7 \
--genesisTime $GENESIS_TIME \
Expand All @@ -13,7 +13,4 @@ packages/cli/bin/lodestar dev \
--rest.namespace '*' \
--metrics \
--logLevel debug \
--eth1 false \
--network.requestCountPeerLimit 1000000 \
--network.blockCountTotalLimit 1000000 \
--network.blockCountPeerLimit 1000000
--eth1 false
10 changes: 5 additions & 5 deletions scripts/dev/node2.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash

# Fetch node1 data
ENR=$(curl -s http://localhost:9596/eth/v1/node/identity | jq .data.enr)
GENESIS_TIME=$(curl -s http://localhost:9596/eth/v1/beacon/genesis | jq .data.genesis_time)
ENR=$(curl -s http://localhost:9596/eth/v1/node/identity | jq -r .data.enr)
GENESIS_TIME=$(curl -s http://localhost:9596/eth/v1/beacon/genesis | jq -r .data.genesis_time)

packages/cli/bin/lodestar dev \
./lodestar dev \
--genesisValidators 8 \
--genesisTime $GENESIS_TIME \
--enr.ip 127.0.0.1 \
Expand All @@ -13,10 +13,10 @@ packages/cli/bin/lodestar dev \
--rest \
--rest.namespace '*' \
--metrics \
--metrics.serverPort 8009 \
--metrics.port 8009 \
--logLevel debug \
--eth1 false \
--port 9001 \
--rest.port 9597 \
--network.connectToDiscv5Bootnodes true \
--network.discv5.bootEnrs $ENR
--bootnodes $ENR

0 comments on commit a4c93c1

Please sign in to comment.