wallet-sanity: Wait for node readiness at max commitment
This commit is contained in:
committed by
Trent Nelson
parent
ff88c96549
commit
8064da306f
@ -20,8 +20,11 @@ args+=(--keypair "$SOLANA_CONFIG_DIR"/faucet.json)
|
|||||||
node_readiness=false
|
node_readiness=false
|
||||||
timeout=60
|
timeout=60
|
||||||
while [[ $timeout -gt 0 ]]; do
|
while [[ $timeout -gt 0 ]]; do
|
||||||
output=$($solana_cli "${args[@]}" transaction-count)
|
set +e
|
||||||
if [[ -n $output ]]; then
|
output=$($solana_cli "${args[@]}" transaction-count --commitment max)
|
||||||
|
rc=$?
|
||||||
|
set -e
|
||||||
|
if [[ $rc -eq 0 && -n $output ]]; then
|
||||||
node_readiness=true
|
node_readiness=true
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user