Skip to content

vote-interface: deprecate legacy vote instructions - #1067

Merged
buffalojoec merged 2 commits into
anza-xyz:masterfrom
buffalojoec:vote-interface-deprecate-legacy-vote-ixs
Nov 3, 2026
Merged

buffalojoec merged 2 commits into
anza-xyz:masterfrom
buffalojoec:vote-interface-deprecate-legacy-vote-ixs

Conversation

@buffalojoec

Copy link
Copy Markdown
Contributor

Problem

Alpenglow is live. We don't need any of this legacy vote stuff anymore. Before I delete all of it, I wanted to push out a minor version with a bunch of deprecation warnings.

Summary of Changes

Deprecate everything for legacy vote instructions.

@anza-xyz/tx-metadata you are tagged probably just for the one test change.

@buffalojoec
buffalojoec requested a review from joncinque November 2, 2026 03:17
@buffalojoec
buffalojoec requested a review from a team as a code owner November 2, 2026 03:17
@buffalojoec
buffalojoec force-pushed the vote-interface-deprecate-legacy-vote-ixs branch from bdc23a3 to a9930fb Compare November 2, 2026 03:25
AshwinSekar
AshwinSekar previously approved these changes Nov 2, 2026

@AshwinSekar AshwinSekar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ty! FYI I have the vote program changes staged, will add you once i 🪓 all the agave tests that rely on Tower

@buffalojoec

Copy link
Copy Markdown
Contributor Author

ty! FYI I have the vote program changes staged, will add you once i 🪓 all the agave tests that rely on Tower

Ah cool, thanks! I only started picking some of this up because I wanted to fix the vote-interface deserialization API, which needs to be breaking (probably).

Comment thread transaction/src/sanitized.rs Outdated
#[cfg(test)]
#[allow(clippy::arithmetic_side_effects)]
mod tests {
#[allow(deprecated)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you add expect here? It does the same as allow but fails once the lint is no longer being triggered, so we'll remember to remove this blanket allow once the deprecated methods are removed.

Suggested change
#[allow(deprecated)]
#[expect(deprecated)]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure thing, done in baafb72

@joncinque joncinque left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me!

Moving from allow(deprecated) to expect(deprecated) makes sense to me also

@DSharifi DSharifi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@buffalojoec
buffalojoec merged commit 661c2e1 into anza-xyz:master Nov 3, 2026
30 checks passed
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.

4 participants