Skip to content

Fix validator locations cache never starting#166

Merged
raymondjacobson merged 2 commits intomainfrom
fix/validator-locations-cache
Mar 28, 2026
Merged

Fix validator locations cache never starting#166
raymondjacobson merged 2 commits intomainfrom
fix/validator-locations-cache

Conversation

@raymondjacobson
Copy link
Copy Markdown
Contributor

Summary

  • dashboardCache.StartRefresh() is a blocking call (infinite ticker loop), so validatorLocationsCache.StartRefresh() on the next line never executed
  • /api/validator-locations always returned [] because the cache was never populated
  • Split into separate errgroup goroutines so both caches run independently

Test plan

  • Deploy and verify https://explorer.openaudio.org/api/validator-locations returns validator locations
  • Verify globe shows validator markers and block proposal lines

🤖 Generated with Claude Code

raymondjacobson and others added 2 commits March 27, 2026 17:34
dashboardCache.StartRefresh() blocks forever (infinite ticker loop),
so validatorLocationsCache.StartRefresh() on the next line never
executed. Split into separate goroutines so both caches run.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rewrite projectToScreen to match COBE's exact internal w() and W()
  coordinate system and rotation matrix, fixing misplaced purple dots
- Fix play.lat && play.lng check that dropped plays at lat=0 or lng=0
- Change globe panel from fixed h-[500px] to min-h with items-stretch
  so it matches the Transaction Analytics panel height
- Add / keyboard shortcut to focus the search input

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raymondjacobson raymondjacobson merged commit 094344e into main Mar 28, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the fix/validator-locations-cache branch March 28, 2026 01:11
@raymondjacobson raymondjacobson restored the fix/validator-locations-cache branch March 28, 2026 01:44
@raymondjacobson raymondjacobson deleted the fix/validator-locations-cache branch March 28, 2026 02:10
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