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: Archiver does not jump the gun on epoch completed #10801

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

spalladino
Copy link
Collaborator

Archiver's isEpochComplete would return true when the first L1 block of the last epoch L2 slot was mined, ignoring the fact that the L2 block could be posted on a later L1 slot.

This fixes the check so it reports the epoch as completed only once the last L1 block of the last L2 slot of the epoch is mined.

Fixes #10800

@spalladino spalladino force-pushed the palla/fix-archiver-is-epoch-completed branch 2 times, most recently from ff35950 to edc7e87 Compare December 18, 2024 12:14
Copy link
Collaborator

@just-mitch just-mitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!

Archiver's isEpochComplete would return `true` when the first L1 block
of the last epoch L2 slot was mined, ignoring the fact that the L2 block
could be posted on a later L1 slot.

This fixes the check so it reports the epoch as completed only once the
last L1 block of the last L2 slot of the epoch is mined.
@spalladino spalladino force-pushed the palla/fix-archiver-is-epoch-completed branch from edc7e87 to efae714 Compare December 18, 2024 14:24
@spalladino spalladino merged commit 51d82aa into master Dec 18, 2024
72 checks passed
@spalladino spalladino deleted the palla/fix-archiver-is-epoch-completed branch December 18, 2024 18:37
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.

bug: Archiver reports epoch as complete too early
2 participants