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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user