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

Don't clear out resolutions from the votestore if the DB is restored … #1312

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

charithabandi
Copy link
Contributor

@charithabandi charithabandi commented Jan 28, 2025

…using a statesync snapshot

If the DB is restored from genesis snapshots during offline or ZDT migrations, the resolutions from the voting table should be cleared out especially the validator and migration resolutions as they are not applicable for the new network. However this should not be done for the statesync snapshots. (This is a regression from the changes I made yesterday)

This PR also adds a new integration test to test out unresolved resolutions in statesync snapshots

Also fixes incomplete statesync tests

@charithabandi charithabandi marked this pull request as ready for review January 28, 2025 21:31
@charithabandi charithabandi force-pushed the snapshotstore branch 2 times, most recently from c0efbc2 to b5f16d3 Compare January 30, 2025 23:40
Copy link
Member

@jchappelow jchappelow left a comment

Choose a reason for hiding this comment

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

OK with me.

@charithabandi charithabandi merged commit bd6ab70 into kwilteam:main Feb 3, 2025
2 checks passed
@charithabandi charithabandi deleted the snapshotstore branch February 3, 2025 16:32
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.

2 participants