Skip to content

Commit

Permalink
Add target-peers and spec preset to local testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Jul 29, 2021
1 parent 0c25e92 commit b9d134e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/local_testnet/beacon_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ exec lighthouse \
--enr-udp-port $2 \
--enr-tcp-port $2 \
--port $2 \
--http-port $3
--http-port $3 \
--target-peers $((NODE_COUNT - 1))
4 changes: 2 additions & 2 deletions scripts/local_testnet/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ GENESIS_TIME=`expr $NOW + $GENESIS_DELAY`


lcli \
--spec mainnet \
--spec $SPEC_PRESET \
new-testnet \
--deposit-contract-address $DEPOSIT_CONTRACT_ADDRESS \
--testnet-dir $TESTNET_DIR \
Expand All @@ -49,7 +49,7 @@ echo Validators generated with keystore passwords at $DATADIR.
echo "Building genesis state... (this might take a while)"

lcli \
--spec mainnet \
--spec $SPEC_PRESET \
interop-genesis \
--genesis-time $GENESIS_TIME \
--testnet-dir $TESTNET_DIR \
Expand Down
3 changes: 3 additions & 0 deletions scripts/local_testnet/vars.env
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ NETWORK_ID=4242

# Hard fork configuration
ALTAIR_FORK_EPOCH=18446744073709551615

# Spec version (mainnet or minimal)
SPEC_PRESET=mainnet

0 comments on commit b9d134e

Please sign in to comment.