Add RPC API check
This commit is contained in:
parent
f38345fdad
commit
1531a1777a
|
@ -82,6 +82,15 @@ echo "--- Node count"
|
||||||
rm -rf $client_id
|
rm -rf $client_id
|
||||||
) || flag_error
|
) || flag_error
|
||||||
|
|
||||||
|
echo "--- RPC API: getTransactionCount"
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
curl -X POST \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
|
||||||
|
http://localhost:8899
|
||||||
|
) || flag_error
|
||||||
|
|
||||||
killBackgroundCommands
|
killBackgroundCommands
|
||||||
|
|
||||||
echo "--- Ledger verification"
|
echo "--- Ledger verification"
|
||||||
|
|
|
@ -90,10 +90,19 @@ local|tar)
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
echo "--- RPC API: getTransactionCount"
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
curl -X POST \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
|
||||||
|
http://"$entrypointIp":8899
|
||||||
|
)
|
||||||
|
|
||||||
echo "--- $entrypointIp: wallet sanity"
|
echo "--- $entrypointIp: wallet sanity"
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
scripts/wallet-sanity.sh "$entrypointIp:8001"
|
scripts/wallet-sanity.sh "$entrypointIp":8001
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "+++ $entrypointIp: node count ($numNodes expected)"
|
echo "+++ $entrypointIp: node count ($numNodes expected)"
|
||||||
|
|
Loading…
Reference in New Issue