Delegate stake from the pre-created identity keypair if it exists

This commit is contained in:
Michael Vines 2019-08-01 23:00:15 -07:00
parent 59d900977d
commit b6b9c2cf56
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 7 additions and 3 deletions

View File

@ -261,11 +261,15 @@ local|tar|skip)
waitForNodeToInit
if [[ $skipSetup != true && $nodeType != blockstreamer ]]; then
maybe_no_airdrop=
args=(--force "$stake")
if [[ $airdropsEnabled != true ]]; then
maybe_no_airdrop=--no-airdrop
args+=(--no-airdrop)
fi
./multinode-demo/delegate-stake.sh $maybe_no_airdrop --force $stake
if [[ -f ~/solana/fullnode-identity.json ]]; then
args+=(--keypair ~/solana/fullnode-identity.json)
fi
./multinode-demo/delegate-stake.sh "${args[@]}"
fi
;;
replicator)