Skip to content

Refactor/startblock and rpcs#19

Merged
LeonardoVieira1630 merged 20 commits into
mainfrom
refactor/startblock_and_rpcs
May 15, 2026
Merged

Refactor/startblock and rpcs#19
LeonardoVieira1630 merged 20 commits into
mainfrom
refactor/startblock_and_rpcs

Conversation

@LeonardoVieira1630

Copy link
Copy Markdown
Member

No description provided.

LeonardoVieira1630 and others added 19 commits April 3, 2025 16:28
Major structural improvements:
- Eliminate unnecessary indexer/ subdirectory, move all files to root
- Organize files into logical folders (docker/, patches/, config/)
- Remove debugging artifacts and unused files
- Replace Makefile with intuitive yarn scripts

Changes:
- Move all indexer files from indexer/ to root directory
- Create docker/ folder for Docker-related files
- Create patches/ folder for fix-soroban-bug.js patch
- Create config/ folder for environment files
- Remove proxy/ folder (unnecessary Horizon proxy)
- Remove unused patches (fix-pagination.js)
- Remove test files and backups
- Add yarn scripts for common operations (start, stop, logs, dev)
- Update all path references in docker-compose and Dockerfile

The indexer continues to work perfectly with the Content-Length fix
handling up to 2000 events per request.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…429 backoff

- START_BLOCK 58419000 → 62530000 (Soroban RPC dropped older ledgers after
  7-month downtime; new value sits well inside the ~120k ledger window).
- Add horizon.stellar.lobstr.co as failover alongside horizon.stellar.org
  so 429s on one Horizon don't halt indexing. QuikNode/Ankr documented
  as unusable in comments.
- patches/fix-soroban-bug.js: hold req.end() during a shared cooldown
  whenever any upstream returns 429. Backoff is exponential per
  consecutive 429 burst (2s → 60s cap), reset on the next 2xx, capped
  below SubQuery's --timeout=120000 to avoid phantom timeouts.
- --batch-size 1 → 10: process 10 ledgers per fetch now that 429s no
  longer crash the worker.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@LeonardoVieira1630 LeonardoVieira1630 self-assigned this May 15, 2026
@LeonardoVieira1630
LeonardoVieira1630 merged commit 8036c57 into main May 15, 2026
1 check passed
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