diff --git a/net/net.sh b/net/net.sh index d6b0418b6..85d4a022a 100755 --- a/net/net.sh +++ b/net/net.sh @@ -61,7 +61,7 @@ Operate a configured testnet - Override the default --hashes-per-tick for the cluster --no-airdrop - If set, disables airdrops. Nodes must be funded in genesis config when airdrops are disabled. - --lamports NUM_LAMPORTS_TO_MINT + --faucet-lamports NUM_LAMPORTS_TO_MINT - Override the default 500000000000000000 lamports minted in genesis --internal-nodes-stake-lamports NUM_LAMPORTS_PER_NODE - Amount to stake internal nodes. @@ -88,6 +88,10 @@ Operate a configured testnet --use-move - Build the move-loader-program and add it to the cluster + --operating-mode development|softlaunch + - Specify whether or not to launch the cluster in "development" mode with all features enabled at epoch 0, + or "softlaunch" mode with some features disabled at epoch 0 (default: development) + sanity/start-specific options: -F - Discard validator nodes that didn't bootup successfully -o noInstallCheck - Skip solana-install sanity @@ -168,7 +172,18 @@ while [[ -n $1 ]]; do elif [[ $1 = --target-lamports-per-signature ]]; then genesisOptions="$genesisOptions $1 $2" shift 2 - elif [[ $1 = --lamports ]]; then + elif [[ $1 = --faucet-lamports ]]; then + genesisOptions="$genesisOptions $1 $2" + shift 2 + elif [[ $1 = --operating-mode ]]; then + case "$2" in + development|softlaunch) + ;; + *) + echo "Unexpected operating mode: \"$2\"" + exit 1 + ;; + esac genesisOptions="$genesisOptions $1 $2" shift 2 elif [[ $1 = --no-snapshot-fetch ]]; then @@ -845,7 +860,6 @@ deploy() { echo "Network start logs in $netLogDir" } - stopNode() { local ipAddress=$1 local block=$2 @@ -918,7 +932,6 @@ stop() { echo "Stopping nodes took $SECONDS seconds" } - checkPremptibleInstances() { # The validatorIpList nodes may be preemptible instances that can disappear at # any time. Try to detect when a validator has been preempted to help the user