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 <cursoragent@cursor.com>
This commit is contained in:
2026-07-03 01:36:42 +00:00
parent 2fbf996857
commit 1c65fdb26f
2 changed files with 9 additions and 0 deletions

View File

@@ -380,6 +380,14 @@ if [ $? -eq 0 ]; then
echo "unverified ($http_status_code2)" echo "unverified ($http_status_code2)"
exit 1 exit 1
fi fi
else
rm "$response_file2"
if [ $attempt -lt $MAX_RETRIES ]; then
attempt=$((attempt + 1))
continue
fi
echo "unverified (reference unreachable)"
exit 1
fi fi
done done

View File

@@ -3394,6 +3394,7 @@
"lagging_lag": 20, "lagging_lag": 20,
"syncing_lag": 40, "syncing_lag": 40,
"urls": [ "urls": [
"https://rpc.mainnet.chain.robinhood.com",
"https://robinhood.drpc.org" "https://robinhood.drpc.org"
] ]
}, },