Reorder sanity.

1. Check for presence of nodes
2. Check for functioning RPC API
3. Then try the wallet
This commit is contained in:
Michael Vines
2019-01-09 12:39:27 -07:00
committed by Grimes
parent 77794eebdb
commit 639bed2f6d
2 changed files with 21 additions and 22 deletions

View File

@ -89,22 +89,6 @@ local|tar)
exit 1
esac
echo "--- RPC API: getTransactionCount"
(
set -x
curl --retry 5 --retry-delay 2 --retry-connrefused \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://"$entrypointIp":8899
)
echo "--- $entrypointIp: wallet sanity"
(
set -x
scripts/wallet-sanity.sh "$entrypointIp":8001
)
echo "+++ $entrypointIp: node count ($numNodes expected)"
(
set -x
@ -124,6 +108,21 @@ echo "+++ $entrypointIp: node count ($numNodes expected)"
--converge-only
)
echo "--- RPC API: getTransactionCount"
(
set -x
curl --retry 5 --retry-delay 2 --retry-connrefused \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://"$entrypointIp":8899
)
echo "--- $entrypointIp: wallet sanity"
(
set -x
scripts/wallet-sanity.sh "$entrypointIp":8001
)
echo "--- $entrypointIp: verify ledger"
if $ledgerVerify; then
if [[ -d $ledger ]]; then