Skip to content

program: deserialize v3 and v4 vote state#89

Closed
buffalojoec wants to merge 2 commits intobump-deps-sdk-3.0from
vote-state-v4-deser
Closed

program: deserialize v3 and v4 vote state#89
buffalojoec wants to merge 2 commits intobump-deps-sdk-3.0from
vote-state-v4-deser

Conversation

@buffalojoec
Copy link
Copy Markdown
Contributor

Updates the Stake program to support deserializing - with the optimized approach - either vote state v3 or v4. Also does a little refactoring in the tests so I could add test_case to test all vote-state-related tests against both v3 and v4.

Depends on #88.


@jstarry We're in a bit of a pickle here.

It's a ton easier if we use the updated solana-vote-program crate, which has the generic processor and VoteStateHandle. Otherwise, we'd have to reimplement things like process_vote_unchecked. I've linked it via git for now, but it depends on anza-xyz/agave#8312. However, in order to do that, we'd need to backport all of the handler logic to 3.0.

Additionally, this change has to go in, and we have to add the newly compiled program ELF to the monorepo, like I've done under a "TEMP" commit in anza-xyz/agave#8290.

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.

1 participant