Fix validator locations for globe visualization#165
Merged
raymondjacobson merged 3 commits intomainfrom Mar 27, 2026
Merged
Conversation
…lback - buildValidatorLocations now fetches all validator /version endpoints concurrently instead of sequentially (33 validators * 5s = 165s serial vs ~10s parallel) - Increased cache TTL from 30s to 5min (locations rarely change) - Increased per-request timeout from 5s to 10s - Fixed client-side fallback to extract https:// URLs from validators page instead of devnet-only regex pattern Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26401b9 to
546539c
Compare
The ETL etl_validators table only has ~33 of 71 validators (missing legacy registrations and genesis validators). Now queries CometBFT's validators RPC directly to get the full set, cross-references with ETL DB for endpoints, then fetches /version for coordinates. - Query local CometBFT JSON-RPC at localhost:26657 with pagination - 3s timeout for /version endpoint calls - Concurrent location fetches Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add periodic validator sync that queries core GetStatus to discover all known peers (including genesis and legacy-registered validators) and upserts them into etl_validators. Runs every 5 minutes. Reverts console buildValidatorLocations to simple ETL DB query now that the ETL layer maintains a complete validator set. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/validator-locationsreturning[]in productionbuildValidatorLocationsnow fetches all validator/versionendpoints concurrently instead of sequentially (33 validators × 5s timeout = up to 165s serial → ~10s parallel)Test plan
https://explorer.openaudio.org/api/validator-locationsreturns non-empty array🤖 Generated with Claude Code