Add retries to RPC API probe

This commit is contained in:
Michael Vines 2019-01-08 08:29:41 -08:00 committed by Grimes
parent d2431128c7
commit 1b7598e351
2 changed files with 4 additions and 4 deletions

View File

@ -85,8 +85,8 @@ echo "--- Node count"
echo "--- RPC API: getTransactionCount" echo "--- RPC API: getTransactionCount"
( (
set -x set -x
curl -X POST \ curl --retry 5 --retry-delay 2 --retry-connrefused \
-H 'Content-Type: application/json' \ -X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \ -d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://localhost:8899 http://localhost:8899
) || flag_error ) || flag_error

View File

@ -93,8 +93,8 @@ esac
echo "--- RPC API: getTransactionCount" echo "--- RPC API: getTransactionCount"
( (
set -x set -x
curl -X POST \ curl --retry 5 --retry-delay 2 --retry-connrefused \
-H 'Content-Type: application/json' \ -X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \ -d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://"$entrypointIp":8899 http://"$entrypointIp":8899
) )