Allow pre-existing stake accounts in multinode-demo/delegate-stake.sh (#10635)
(cherry picked from commit ae0d5ba201
)
Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
@ -88,16 +88,15 @@ if [[ ! -f $vote_account ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f $stake_account ]]; then
|
|
||||||
echo "Error: $stake_account already exists"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ((airdrops_enabled)); then
|
if ((airdrops_enabled)); then
|
||||||
$solana_cli "${common_args[@]}" airdrop "$stake_sol"
|
$solana_cli "${common_args[@]}" airdrop "$stake_sol"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$solana_keygen new --no-passphrase -so "$stake_account"
|
if ! [[ -f "$stake_account" ]]; then
|
||||||
|
$solana_keygen new --no-passphrase -so "$stake_account"
|
||||||
|
else
|
||||||
|
echo "$stake_account already exists! Using it"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
$solana_cli "${common_args[@]}" \
|
$solana_cli "${common_args[@]}" \
|
||||||
|
Reference in New Issue
Block a user