Skip to content

Indexer Resilience & Reorg Recovery #226

@dDevAhmed

Description

@dDevAhmed
  • 📚 Overview: Refactor the IndexerService to handle chain reorganizations and ensure data idempotency.
  • 🎯 Objectives:
    • Implement block sequential queue
    • Transactional block persistence
    • Intelligent RPC backoff
  • 🧠 Problem Context: The current indexer can double-process events or fail to roll back state on orphaned blocks.
  • 🧩 Technical Scope: IndexerService.ts, EventProcessor.ts, Prisma schema.
  • Acceptance Criteria:
    • Successful recovery after 10-block reorg in local test
    • Idempotent processing confirmed by duplicate logs
    • Backoff logic handles 429 errors
  • 🔐 Security / Integrity Considerations: Incorrect indexing leads to stale balances and broken protocol invariants.
  • Complexity & Effort: High
  • 🔗 References: Internal Ref #BE-MATURE-001
  • 🏷️ Labels: backend, realtime, database, stellar-wave, complexity-high

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions