Skip to content

Add TowerVoteState#4618

Merged
jstarry merged 1 commit into
anza-xyz:masterfrom
jstarry:refactor/tower-vote-state
Feb 6, 2025
Merged

Add TowerVoteState#4618
jstarry merged 1 commit into
anza-xyz:masterfrom
jstarry:refactor/tower-vote-state

Conversation

@jstarry
Copy link
Copy Markdown

@jstarry jstarry commented Jan 24, 2025

Problem

Tower attempts to use the latest version of the vote program's vote state for tracking vote updates but is actually only serialized with an old version of vote state. It should instead just use a simple vote state algorithm which is independent of vote program state changes.

Summary of Changes

Fixes #

@jstarry jstarry force-pushed the refactor/tower-vote-state branch 4 times, most recently from 55435cb to e878b07 Compare January 26, 2025 09:47
@jstarry jstarry force-pushed the refactor/tower-vote-state branch 2 times, most recently from cd6630e to c4f0636 Compare January 27, 2025 08:06
@jstarry jstarry marked this pull request as ready for review January 27, 2025 10:47
@jstarry jstarry requested a review from AshwinSekar January 27, 2025 10:50
Copy link
Copy Markdown

@AshwinSekar AshwinSekar left a comment

Choose a reason for hiding this comment

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

This looks correct although we use TowerVoteState we still end up converting back to VoteState1_14_11 for storage so migration of the tower file is not necessary.

@carllin do you mind double checking this commit just in case?

@jstarry jstarry requested a review from carllin February 5, 2025 15:28
@jstarry jstarry merged commit 2ef5371 into anza-xyz:master Feb 6, 2025
@jstarry jstarry deleted the refactor/tower-vote-state branch February 6, 2025 05:22
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.

3 participants