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 setting of protocol version in created snapshots #1787

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Dec 11, 2024

What

Set the protocol version of the created snapshot to the latest protocol version of all the bucket lists.

Why

The logic as is uses the protocol version of the last bucket, but the last bucket is the oldest and therefore the protocol version set in the snapshot file can be a previous protocol version after a network upgrade where newer buckets have new protocol versions and the oldest still has the previous.

cc @kalepail

@leighmcculloch leighmcculloch added the bug Something isn't working label Dec 11, 2024
@leighmcculloch leighmcculloch marked this pull request as ready for review December 11, 2024 08:44
@janewang janewang requested a review from willemneal December 11, 2024 18:46
@leighmcculloch leighmcculloch merged commit 9ec9b02 into main Dec 11, 2024
30 of 31 checks passed
@leighmcculloch leighmcculloch deleted the fix-snapshot-protocol-version branch December 11, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants