Skip to content

fix(status): tolerate one-epoch score lag#138

Merged
onmax merged 7 commits intomainfrom
fix/status-score-lag-tolerance
Feb 26, 2026
Merged

fix(status): tolerate one-epoch score lag#138
onmax merged 7 commits intomainfrom
fix/status-score-lag-tolerance

Conversation

@onmax
Copy link
Member

@onmax onmax commented Feb 25, 2026

We tracked this down: we recently changed the policy to allow up to 1 epoch of lag for validator scores. Cron jobs are running successfully at 00:00 and 12:00 UTC, but epochs are about 11.8 hours long (not exactly 12h), so a 1-epoch delay can happen even when sync is healthy.

The real issue was that the status health check treated that 1-epoch lag as an error. This PR updates the logic so it only reports an error when lag reaches 2 or more epochs.

It also adds status diagnostics (latestScoreEpoch, scoreLagEpochs, allowedScoreLagEpochs), updates dashboard copy to reflect the 12h schedule, and aligns README wording.

@onmax onmax temporarily deployed to preview-testnet February 25, 2026 20:17 — with GitHub Actions Inactive
@onmax onmax requested a review from Albermonte February 25, 2026 20:18
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 25, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
validators-api-main 4bc2c21 Commit Preview URL

Branch Preview URL
Feb 26 2026, 07:26 AM

@onmax onmax temporarily deployed to preview-testnet February 25, 2026 20:20 — with GitHub Actions Inactive
@Albermonte
Copy link
Member

❌ Fix the error
✅ Change the test so it doesnt fail

Copy link
Member

@Albermonte Albermonte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you have tested and it works

@onmax
Copy link
Member Author

onmax commented Feb 25, 2026

@codex review

@onmax onmax temporarily deployed to preview-testnet February 26, 2026 06:54 — with GitHub Actions Inactive
@onmax onmax temporarily deployed to preview-testnet February 26, 2026 07:13 — with GitHub Actions Inactive
@onmax onmax temporarily deployed to preview-testnet February 26, 2026 07:23 — with GitHub Actions Inactive
@onmax onmax merged commit 44247cb into main Feb 26, 2026
3 checks passed
@onmax onmax deleted the fix/status-score-lag-tolerance branch February 26, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants