diff --git a/scripts/local_testnet/beacon_node.sh b/scripts/local_testnet/beacon_node.sh index bb75da8d3a9..5c286e31978 100755 --- a/scripts/local_testnet/beacon_node.sh +++ b/scripts/local_testnet/beacon_node.sh @@ -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)) diff --git a/scripts/local_testnet/setup.sh b/scripts/local_testnet/setup.sh index 4e86ec88064..85f1a5c17d0 100755 --- a/scripts/local_testnet/setup.sh +++ b/scripts/local_testnet/setup.sh @@ -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 \ @@ -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 \ diff --git a/scripts/local_testnet/vars.env b/scripts/local_testnet/vars.env index 3152dd49f47..b3836b38b9f 100644 --- a/scripts/local_testnet/vars.env +++ b/scripts/local_testnet/vars.env @@ -28,3 +28,6 @@ NETWORK_ID=4242 # Hard fork configuration ALTAIR_FORK_EPOCH=18446744073709551615 + +# Spec version (mainnet or minimal) +SPEC_PRESET=mainnet