Create development vs softlaunch environment hooks into net scripts (#6974)

This commit is contained in:
Dan Albert
2019-11-15 15:18:45 -05:00
committed by GitHub
parent 0ca943f49b
commit 946e937549
3 changed files with 28 additions and 7 deletions

View File

@ -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
@ -171,6 +175,17 @@ while [[ -n $1 ]]; do
elif [[ $1 = --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
maybeNoSnapshot="$1"
shift 1
@ -845,7 +860,6 @@ deploy() {
echo "Network start logs in $netLogDir"
}
stopNode() {
local ipAddress=$1
local block=$2
@ -917,7 +931,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