How do I handle chain reorgs in an indexer or backend?
Store block hashes, verify each block's parentHash, and on mismatch roll back to the common ancestor and re-index. Fetch logs by block hash and act irreversibly only on finalized blocks.
#indexing#nodes#transactions
Deepak Tewatia · 5 min