diff --git a/ops/verify-geth-endpoint.sh b/ops/verify-geth-endpoint.sh index 29a2922ca..e272777d8 100755 --- a/ops/verify-geth-endpoint.sh +++ b/ops/verify-geth-endpoint.sh @@ -16,24 +16,4 @@ if [ "$syncing" != "false" ]; then exit 1 fi -## Check block timestamp -data='{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false],"id":1}' -response=$(curl -s -X POST -H "Content-Type: application/json" --data "$data" $URL) -echo "$response" -timestamp_hex=$(echo $response | jq -r '.result.timestamp' | sed 's/0x//') -timestamp=$((16#$timestamp_hex)) -current_time=$(date +%s) - -# Calculate the difference -current_time=$(date +%s) -echo "Current time: $current_time" -echo "Block timestamp: $timestamp" -difference=$(($current_time - $timestamp)) -echo "Difference: $difference" - -if [ $difference -gt $TIME_DIFF_THRESHOLD ]; then - echo "Block timestamp at $URL is not within $TIME_DIFF_THRESHOLD seconds of the wall clock time." - exit 1 -fi - echo "RPC endpoint at $URL is healthy." \ No newline at end of file