wallet-sanity: Wait for node readiness at max commitment

This commit is contained in:
Trent Nelson 2020-09-10 13:05:57 -06:00 committed by Trent Nelson
parent ff88c96549
commit 8064da306f
1 changed files with 5 additions and 2 deletions

View File

@ -20,8 +20,11 @@ args+=(--keypair "$SOLANA_CONFIG_DIR"/faucet.json)
node_readiness=false
timeout=60
while [[ $timeout -gt 0 ]]; do
output=$($solana_cli "${args[@]}" transaction-count)
if [[ -n $output ]]; then
set +e
output=$($solana_cli "${args[@]}" transaction-count --commitment max)
rc=$?
set -e
if [[ $rc -eq 0 && -n $output ]]; then
node_readiness=true
break
fi