Add retries to RPC API probe
This commit is contained in:
parent
d2431128c7
commit
1b7598e351
|
@ -85,8 +85,8 @@ echo "--- Node count"
|
|||
echo "--- RPC API: getTransactionCount"
|
||||
(
|
||||
set -x
|
||||
curl -X POST \
|
||||
-H 'Content-Type: application/json' \
|
||||
curl --retry 5 --retry-delay 2 --retry-connrefused \
|
||||
-X POST -H 'Content-Type: application/json' \
|
||||
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
|
||||
http://localhost:8899
|
||||
) || flag_error
|
||||
|
|
|
@ -93,8 +93,8 @@ esac
|
|||
echo "--- RPC API: getTransactionCount"
|
||||
(
|
||||
set -x
|
||||
curl -X POST \
|
||||
-H 'Content-Type: application/json' \
|
||||
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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue