check-health.sh: retry logic for hash comparison (fix false-positive forked) #8
Reference in New Issue
Block a user
Delete Branch "issue-42"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Durable compose-repo PR for vibe-node issue #42. Supersedes the conflict-prone parent gitlink-PR vibe-node#45 — this is a plain
check-health.shfile diff with no submodule gitlink, so it stays mergeable regardless of deploy churn onmain.Change
check-health.shdeclares a node "forked" on a single hash mismatch between local and reference RPC at the same height. Chains with frequent 1-block tip reorgs (Viction PoSV, Rootstock merge-mining) produce transient mismatches that resolve in seconds → false-positive "forked" alerts.Wrap the hash comparison in a 3-attempt retry loop (re-fetch local + reference each try, 3s sleep; only declare "forked" if all 3 mismatch; worst-case +6s for genuinely-forked nodes). A healthy node hitting a transient reorg falls through to normal online/lagging/syncing.
Verification
check-health.shmodified.On merge
The next
deploy-compose-repobumps the vibe-noderpcgitlink to rpcmainHEAD (which then includes this). No PR touches the gitlink — closes the merge-window problem. (Branchissue-42, commite9ed1c0.)