Skip to content

Commit

Permalink
less verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
twoshark committed Nov 13, 2023
1 parent ac223a5 commit 67a2b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ops/verify-geth-endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 67a2b23

Please sign in to comment.