Skip to content

fix(sitemap): use getBenchmarksSafe + proxy IP unblock - #2021

Merged
Flotapponnier merged 7 commits into
devfrom
feat/proxy-ip-unblock
Aug 20, 2026
Merged

fix(sitemap): use getBenchmarksSafe + proxy IP unblock#2021
Flotapponnier merged 7 commits into
devfrom
feat/proxy-ip-unblock

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

  • Sitemap was falling back to ~20 pages because getBenchmarks() (slow KV fan-out) was timing out at 25s. Replaced with getBenchmarksSafe() which uses the aggregate blob fast path (~20ms CDN fetch) — sitemap should now emit 500+ URLs
  • Selective proxy (PROBE_PROXY_URL + PROBE_PROXY_HOSTS) for Railway IP-blocked providers: blastapi on rpc-capabilities, predictit/smarkets on pm-rate-limits
  • Removed blastapi from cronos-zkevm-rpc.yml (no valid public endpoint)

Test plan

  • Check /sitemap.xml in prod returns 500+ entries after deploy
  • Verify pm-rate-limits Railway logs show proxy active for predictit/smarkets
  • Verify rpc-capabilities Railway logs show selective proxy active for blastapi hosts

dev → main: RPC benches 222-231, provider fixes, Greymass logo
- rpc-capabilities: patch http.DefaultTransport at startup with a host-keyed
  proxy function; PROBE_PROXY_URL + PROBE_PROXY_HOSTS env vars control which
  providers route through the rotating proxy vs direct connection
- pm-rate-limits: add proxy.go with makeTransport() helper; UseProxy field on
  Venue routes blocked venues (predictit, smarkets) through PROBE_PROXY_URL;
  cold and ramp clients use makeTransport() so proxy applies consistently
- venues.go: mark predictit + smarkets UseProxy=true; fix smarkets list URL
  (sort=popular was rejected by API, replaced with sort=start_datetime,id)
- cronos-zkevm-rpc.yml: remove blastapi provider (no public endpoint exists),
  update counts from 3 to 2 providers throughout
@Flotapponnier
Flotapponnier merged commit 374b23c into dev Aug 20, 2026
1 check failed
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