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(snapshot): block increment for Transactions segment #6274

Merged

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Jan 29, 2024

Increment the block only for block_number > 0.

Previously, if we snapshotted the block range 0..=3, we incremented the block for future loop iteration, so on last block 3, we incremented the block (but didn't write any transactions in it) and saved the snapshot with range of 0..=4.

Now we do this before the loop iteration and check if it's the first block ever snapshotted in this segment.

@shekhirin shekhirin added C-bug An unexpected or incorrect behavior A-static-files Related to static files labels Jan 29, 2024
@shekhirin shekhirin merged commit 674c8e0 into feat/static-files Jan 29, 2024
24 checks passed
@shekhirin shekhirin deleted the alexey/snapshotter-transactions-block-increment branch January 29, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-static-files Related to static files C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants