Skip to content

feat: chain re-org state rollback handler (#584) - #627

Merged
github-actions[bot] merged 2 commits into
Sahara-Pay:mainfrom
elizabetheonoja-art:feat/chain-reorg-rollback-handler
Aug 24, 2026
Merged

feat: chain re-org state rollback handler (#584)#627
github-actions[bot] merged 2 commits into
Sahara-Pay:mainfrom
elizabetheonoja-art:feat/chain-reorg-rollback-handler

Conversation

@elizabetheonoja-art

Copy link
Copy Markdown

Summary: Implements chain reorganization detection and state rollback for the high-throughput indexer.

Changes:

  • ChainReorgHandler: detects and rolls back orphaned ledger state
  • Checkpoint system for efficient rollback of affected entities
  • Integration with IndexerService for automatic re-org detection
  • Non-blocking: all rollback operations yield to event loop
  • Atomic rollback via Prisma transaction

Closes #584

- CryptoSandboxProvider: React context for WebAssembly crypto sandbox
- useCryptoSandbox: hook for direct sandbox access
- Graceful degradation when SharedArrayBuffer unavailable
- WCAG AAA: proper ARIA attributes on interactive elements
- Maintains 60FPS via off-main-thread Ed25519 signing
- Auto-initialization with lazy worker spawn

Closes Sahara-Pay#604
- ChainReorgHandler: detects and rolls back orphaned ledger state
- Checkpoint system for efficient rollback of affected entities
- Integration with IndexerService for automatic re-org detection
- Non-blocking: all rollback operations yield to event loop
- Atomic rollback via Prisma transaction

Closes Sahara-Pay#584
@github-actions
github-actions Bot merged commit 0d96798 into Sahara-Pay:main Aug 24, 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.

Architect chain re-org state rollback for high-throughput indexer API

2 participants