Use if to be more explict about error handling (set -e trouble?)
This commit is contained in:
@ -192,11 +192,9 @@ $solana_wallet --keypair "$fullnode_id_path" address
|
|||||||
# - one token to keep the node identity public key valid.
|
# - one token to keep the node identity public key valid.
|
||||||
retries=5
|
retries=5
|
||||||
while true; do
|
while true; do
|
||||||
$solana_wallet \
|
if $solana_wallet --keypair "$fullnode_id_path" --network "$leader_address" airdrop 3; then
|
||||||
--keypair "$fullnode_id_path" \
|
break
|
||||||
--network "$leader_address" \
|
fi
|
||||||
airdrop 3 \
|
|
||||||
&& break
|
|
||||||
|
|
||||||
# TODO: Consider moving this retry logic into `solana-wallet airdrop` itself,
|
# TODO: Consider moving this retry logic into `solana-wallet airdrop` itself,
|
||||||
# currently it does not retry on "Connection refused" errors.
|
# currently it does not retry on "Connection refused" errors.
|
||||||
|
Reference in New Issue
Block a user