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

feat: add state to prepare snapshot command #83

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

zeapoz
Copy link
Member

@zeapoz zeapoz commented Apr 9, 2024

  • Adds LAST_L1_BATCH_NUMBER to snapshot database.
  • Snapshot header is now generated with the value stored in LAST_L1_BATCH_NUMBER.
    • When resuming snapshot preparation or reconstruction after snapshot import, sets the start block to be LAST_L1_BATCH_NUMBER + 1, which makes sure that no batches are fetched twice.
  • Adds tracing to show progress when importing snapshots.

@zeapoz zeapoz requested a review from vbar April 9, 2024 13:17
@zeapoz zeapoz self-assigned this Apr 9, 2024
@zeapoz zeapoz merged commit 6f7f973 into main Apr 10, 2024
3 of 4 checks passed
@zeapoz zeapoz deleted the feat/prepare-snapshot-store-state branch April 10, 2024 08:04
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.

2 participants