Closed fracek closed 2 months ago
Some users reported an InconsistentDatabase error when running apibara-starknet together with devnet and mainnet forking.
InconsistentDatabase
apibara-starknet
This issue was caused by the ingestion service expecting blocks to be ingested sequentially, starting from block 0.
This fix changes the ingestion service to consider the specified starting block (if any) as finalized.
starknet-devnet-rs
--chain-id MAINNET --fork-block 657000
--dangerously-override-ingestion-start-block=657065
Notice how before this PR the ingestion process fails, but with this patch it works.
Summary
Some users reported an
InconsistentDatabase
error when runningapibara-starknet
together with devnet and mainnet forking.This issue was caused by the ingestion service expecting blocks to be ingested sequentially, starting from block 0.
This fix changes the ingestion service to consider the specified starting block (if any) as finalized.
Testing strategy
starknet-devnet-rs
with mainnet forking (e.g.--chain-id MAINNET --fork-block 657000
)apibara-starknet
ingesting data from devnet and by setting--dangerously-override-ingestion-start-block=657065
Notice how before this PR the ingestion process fails, but with this patch it works.