Skip to content

Add chain reorganization detection and chain.reorg.detected event #31

@geminimir

Description

@geminimir

Summary

Detect Ethereum chain reorganizations that invalidate previously confirmed transactions. Emit chain.reorg.detected event and re-verify affected transactions.

Changes

  • Monitor for uncle/orphan blocks by tracking parent hash continuity
  • On reorg: identify affected transactions, reset finality to pending
  • Emit chain.reorg.detected with old/new block info and affected tx hashes
  • Re-verify transactions from new canonical chain head

Tests

  • Simulated reorg triggers detection
  • Affected transaction is reset to pending
  • chain.reorg.detected event contains correct metadata

Acceptance Criteria

Reorgs are detected and affected transactions are re-verified automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions