Skip to content

clean up remaining vote state v4 TODOs#8540

Merged
buffalojoec merged 3 commits intoanza-xyz:masterfrom
buffalojoec:vote-state-v4-todos
Oct 20, 2025
Merged

clean up remaining vote state v4 TODOs#8540
buffalojoec merged 3 commits intoanza-xyz:masterfrom
buffalojoec:vote-state-v4-todos

Conversation

@buffalojoec
Copy link
Copy Markdown

Problem

As the title says, we left a few TODOs lying around from #8384 that can finally be addressed now that #8290 has landed.

Summary of Changes

Fix those TODOs by converting their callsites to VoteStateV4.

@buffalojoec buffalojoec requested a review from jstarry October 17, 2025 17:09
@buffalojoec buffalojoec changed the title vote-program: clean up remaining vote state v4 TODOs clean up remaining vote state v4 TODOs Oct 17, 2025
@mergify
Copy link
Copy Markdown

mergify Bot commented Oct 17, 2025

If this PR represents a change to the public RPC API:

  1. Make sure it includes a complementary update to rpc-client/ (example)
  2. Open a follow-up PR to update the JavaScript client @solana/kit (example)

Thank you for keeping the RPC clients in sync with the server API @buffalojoec.

Comment thread vote/benches/vote_account.rs Outdated
assert_eq!(&vote_state.node_pubkey, vote_state_view.node_pubkey());
assert_eq!(vote_state.commission, vote_state_view.commission());
assert_eq!(vote_state.credits(), vote_state_view.credits());
assert_eq!(vote_state.inflation_rewards_commission_bps, vote_state_view.commission().into());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You're comparing basis points with percentage here, need to pick one or the other

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ah, u right

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.1%. Comparing base (9711906) to head (5dcd34c).
⚠️ Report is 1885 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #8540     +/-   ##
=========================================
- Coverage    83.1%    83.1%   -0.1%     
=========================================
  Files         847      847             
  Lines      368648   368651      +3     
=========================================
- Hits       306675   306515    -160     
- Misses      61973    62136    +163     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@buffalojoec buffalojoec added this pull request to the merge queue Oct 20, 2025
Merged via the queue into anza-xyz:master with commit 1609179 Oct 20, 2025
43 checks passed
@buffalojoec buffalojoec deleted the vote-state-v4-todos branch October 20, 2025 06:10
rustopian pushed a commit to rustopian/agave that referenced this pull request Nov 20, 2025
* vote-state-v4: clean up remaining TODOs

* vote: update tests/benches

* review
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