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(engine): attempt to advance persistence after it finished #13928

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Jan 22, 2025

Sometimes we are able to persist canonical chain right after on-disk reorged blocks were cleared. However, right now we are never trying to advance persistence after it have finished

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

ah yeah, this is a lot simpler than wrapping this in a loop

@klkvr klkvr added this pull request to the merge queue Jan 22, 2025
Comment on lines 1216 to +1218
}

if !self.persistence_state.in_progress() {
Copy link
Member

Choose a reason for hiding this comment

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

could be an else

Copy link
Member

Choose a reason for hiding this comment

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

or early return, to remove indent

Merged via the queue into main with commit d10dfac Jan 22, 2025
44 checks passed
@klkvr klkvr deleted the klkvr/swap-persistence branch January 22, 2025 17:33
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.

4 participants