Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when overriding starking block #379

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Conversation

fracek
Copy link
Contributor

@fracek fracek commented Sep 3, 2024

Summary

Some users reported an InconsistentDatabase error when running
apibara-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

  • Start starknet-devnet-rs with mainnet forking (e.g. --chain-id MAINNET --fork-block 657000)
  • Start 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.

@fracek fracek merged commit 763ccb6 into main Sep 3, 2024
5 checks passed
@fracek fracek deleted the fix-finalized-block-devnet branch September 3, 2024 15:48
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.

1 participant