Skip to content

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

Merged
taratorio merged 4 commits intodevelfrom
fix-bor-last-frozen-span-and-event
Dec 18, 2023
Merged

freezeblocks: fix blockreader last frozen bor span and event ids#9018
taratorio merged 4 commits intodevelfrom
fix-bor-last-frozen-span-and-event

Conversation

@taratorio
Copy link
Copy Markdown
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
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants