Skip to content

Commit

Permalink
Allow pre-existing stake accounts in multinode-demo/delegate-stake.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
t-nelson committed Jun 11, 2020
1 parent 1320ca1 commit 9e4870f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions multinode-demo/delegate-stake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ if [[ ! -f $vote_account ]]; then
exit 1
fi

if [[ -f $stake_account ]]; then
echo "Error: $stake_account already exists"
exit 1
fi

if ((airdrops_enabled)); then
if [[ -z $keypair ]]; then
echo "--keypair argument must be provided"
Expand All @@ -108,6 +103,8 @@ fi

if ! [[ -f "$stake_account" ]]; then
$solana_keygen new --no-passphrase -so "$stake_account"
else
echo "$stake_account already exists! Using it"
fi

set -x
Expand Down

0 comments on commit 9e4870f

Please sign in to comment.