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 snap initialization from frozen blocks #8908

Merged
merged 3 commits into from
Dec 6, 2023
Merged

Fix snap initialization from frozen blocks #8908

merged 3 commits into from
Dec 6, 2023

Conversation

mh0lt
Copy link
Contributor

@mh0lt mh0lt commented Dec 5, 2023

This fixes a bug on syncing from scratch if the start point is in a frozen block.

@mh0lt mh0lt added the polygon label Dec 5, 2023
@@ -593,9 +593,6 @@ func persistValidatorSets(
snap = s
break
}
if chain != nil && blockNum < chain.FrozenBlocks() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

just FYI: in all such comparisons blockNum < chain.FrozenBlocks() will need add chain.FrozenBlocks() > 0 check.

@mh0lt mh0lt merged commit 624e4d4 into devel Dec 6, 2023
6 checks passed
@mh0lt mh0lt deleted the fix_snap_init branch December 6, 2023 14:28
yperbasis pushed a commit that referenced this pull request Dec 6, 2023
This fixes a bug on syncing from scratch if the start point is in a
frozen block.
@yperbasis yperbasis mentioned this pull request Dec 6, 2023
yperbasis added a commit that referenced this pull request Dec 6, 2023
Cherry pick PRs #8851, #8911, #8817, #8913, #8908

---------

Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
Co-authored-by: a <a@tuxpa.in>
Co-authored-by: Giulio rebuffo <giulio.rebuffo@gmail.com>
Co-authored-by: Mark Holt <135143369+mh0lt@users.noreply.github.com>
awskii added a commit that referenced this pull request Dec 6, 2023
This fixes a bug on syncing from scratch if the start point is in a frozen block.
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.

2 participants