Avoid airdroping when airdrops are disabled

This commit is contained in:
Michael Vines
2019-08-01 22:43:09 -07:00
parent 0f5acb86d3
commit 59d900977d
2 changed files with 6 additions and 2 deletions

View File

@ -50,7 +50,7 @@ while [[ -n $1 ]]; do
shift 2 shift 2
elif [[ $1 = --force ]]; then elif [[ $1 = --force ]]; then
maybe_force=--force maybe_force=--force
shift 2 shift 1
elif [[ $1 = --url || $1 = -u ]]; then elif [[ $1 = --url || $1 = -u ]]; then
url=$2 url=$2
shift 2 shift 2

View File

@ -261,7 +261,11 @@ local|tar|skip)
waitForNodeToInit waitForNodeToInit
if [[ $skipSetup != true && $nodeType != blockstreamer ]]; then if [[ $skipSetup != true && $nodeType != blockstreamer ]]; then
./multinode-demo/delegate-stake.sh --force $stake maybe_no_airdrop=
if [[ $airdropsEnabled != true ]]; then
maybe_no_airdrop=--no-airdrop
fi
./multinode-demo/delegate-stake.sh $maybe_no_airdrop --force $stake
fi fi
;; ;;
replicator) replicator)