From 8064da306fc8569ae33ac28147248854baa05ef1 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Thu, 10 Sep 2020 13:05:57 -0600 Subject: [PATCH] wallet-sanity: Wait for node readiness at max commitment --- scripts/wallet-sanity.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/wallet-sanity.sh b/scripts/wallet-sanity.sh index 3a7291a0f7..e1e6a41f03 100755 --- a/scripts/wallet-sanity.sh +++ b/scripts/wallet-sanity.sh @@ -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