From 67a2b23b45115b4cc1cf77e04a8cd50141ba1875 Mon Sep 17 00:00:00 2001 From: Tushar Shah Date: Mon, 13 Nov 2023 12:25:49 -0700 Subject: [PATCH] less verbose output --- ops/verify-geth-endpoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/verify-geth-endpoint.sh b/ops/verify-geth-endpoint.sh index 4ee84a07..5a9e60cd 100755 --- a/ops/verify-geth-endpoint.sh +++ b/ops/verify-geth-endpoint.sh @@ -7,11 +7,11 @@ URL=$1 TIME_DIFF_THRESHOLD=$2 data='{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' -curl -iv -s -X POST -H "Content-Type: application/json" --data "$data" $URL +curl -i -s -X POST -H "Content-Type: application/json" --data "$data" $URL # Check that the node is synced data='{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' -response=$(curl -iv -s -X POST -H "Content-Type: application/json" --data "$data" $URL) +response=$(curl -i -s -X POST -H "Content-Type: application/json" --data "$data" $URL) syncing=$(echo $response | jq -r '.result') if [ "$syncing" != "false" ]; then echo "$URL is syncing."