Skip to content

fix(api): serve stored validators on RPC failure - #159

Merged
Albermonte merged 1 commit into
mainfrom
albermonte/fix-validator-rpc-fallback
Oct 22, 2026
Merged

Albermonte merged 1 commit into
mainfrom
albermonte/fix-validator-rpc-fallback

Conversation

@Albermonte

Copy link
Copy Markdown
Member

RPC failures made /api/v1/validators return a 404 containing the upstream error, even when validator data was already stored.

Fall back to cached or stored validator data and mark scores stale when the live range is unavailable. Keep query filters and score versions intact. Return 503 when no stored epoch exists.

Validation: all 215 tests pass, typecheck passes, and lint passes with existing .superpowers artifacts excluded. Full lint still reports 86 pre-existing errors in those artifacts.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

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 80bf744 Commit Preview URL

Branch Preview URL
Oct 22 2026, 02:05 PM

@Albermonte
Albermonte merged commit 6985bdf into main Oct 22, 2026
3 checks passed
@Albermonte
Albermonte deleted the albermonte/fix-validator-rpc-fallback branch October 22, 2026 14:10

This branch was successfully deployed

1 active deployment
testnet — 80bf7441 Deployed Oct 22, 2026 by Albermonte via ci #822
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.

1 participant