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

freezeblocks: fix blockreader last frozen bor span and event ids #9018

Merged
merged 4 commits into from
Dec 18, 2023

Conversation

taratorio
Copy link
Member

During testing we run into a "span 7813 not found (db)" due to a very large unwind (1 million blocks).

This is because the block reader's LastFrozenSpanID and LastFrozenEventID returned results that are not consistent with FrozenBorBlocks. The latter is taking into account the existence of .idx files while the former 2 functions were not.

Note such a large unwind is not likely to happen normally unless there is a bug in our unwind logic or an operator is manually unwinding very far back due to reasons like chain halts (ie mumbai bug problem from few months ago), devel testing or anything else along these lines. Regardless, it exposed the above discrepancy which is best to be fixed.

@taratorio taratorio merged commit 4f95342 into devel Dec 18, 2023
6 checks passed
@taratorio taratorio deleted the fix-bor-last-frozen-span-and-event branch December 18, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants