Display confirmation time

This commit is contained in:
Michael Vines 2019-01-22 10:13:56 -08:00 committed by Grimes
parent 222d2d7953
commit 8dc9089611
1 changed files with 9 additions and 0 deletions

View File

@ -304,6 +304,15 @@ while [[ $iteration -le $iterations ]]; do
timeout 60s scripts/wallet-sanity.sh $walletRpcEndpoint
) || flag_error_if_no_leader_rotation
echo "--- RPC API: bootstrap-leader getConfirmationTime ($iteration)"
(
set -x
curl --retry 5 --retry-delay 2 --retry-connrefused \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getConfirmationTime"}' \
http://localhost:8899
) || flag_error
iteration=$((iteration + 1))
if [[ $restartInterval != never && $((iteration % restartInterval)) -eq 0 ]]; then