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
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -261,7 +261,11 @@ local|tar|skip)
waitForNodeToInit
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
;;
replicator)