From 1c65fdb26fe9c87b3aa723f8c435db886e2fe308 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Fri, 3 Jul 2026 01:36:42 +0000 Subject: [PATCH] fix(check-health): retry on unreachable reference endpoint When multicurl fails to reach the reference RPC (timeout/unreachable), clean up the temp file, retry up to MAX_RETRIES, then exit with 'unverified (reference unreachable)' instead of falling through as success. Also add Robinhood mainnet official RPC to reference-rpc-endpoint.json. Co-authored-by: Cursor --- check-health.sh | 8 ++++++++ reference-rpc-endpoint.json | 1 + 2 files changed, 9 insertions(+) diff --git a/check-health.sh b/check-health.sh index 002220b7..bd77bce5 100755 --- a/check-health.sh +++ b/check-health.sh @@ -380,6 +380,14 @@ if [ $? -eq 0 ]; then echo "unverified ($http_status_code2)" exit 1 fi + else + rm "$response_file2" + if [ $attempt -lt $MAX_RETRIES ]; then + attempt=$((attempt + 1)) + continue + fi + echo "unverified (reference unreachable)" + exit 1 fi done diff --git a/reference-rpc-endpoint.json b/reference-rpc-endpoint.json index c6911c2d..af7f9713 100644 --- a/reference-rpc-endpoint.json +++ b/reference-rpc-endpoint.json @@ -3394,6 +3394,7 @@ "lagging_lag": 20, "syncing_lag": 40, "urls": [ + "https://rpc.mainnet.chain.robinhood.com", "https://robinhood.drpc.org" ] },