Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make indexer handle null block hashes (#473)
Before the future release 0.2.0 the block_hash is not stored in database. In future releases we're using the block_hash to check for reorgs. There's a rare corner case where the indexer tries to retrieve a block hash that happens to be null, in that case we should skip it and check for reorgs later in the chain. In the case when a reorg happens later in the chain, and the reorg handler algorithm determines the reorg happened in a range we don't have any data about, then the indexer should simply start indexing from 0, as it's the safest option. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced reorganization detection by adding safeguards to handle scenarios with missing block data. - Improved error handling to prevent issues during blockchain updates. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information