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

stake-pool: add new version of DecreaseValidatorStake to use reserve, add compatibility with master #5322

Merged
merged 6 commits into from
Sep 25, 2023

Conversation

joncinque
Copy link
Contributor

@joncinque joncinque commented Sep 20, 2023

Note: this PR builds on #5288, starting with b482537

Problem

To adapt stake pools to the upcoming changes in solana-labs/solana#33295, stake pools need to pre-fund the rent-exempt reserve during splits in DecreaseValidatorStake.

Solution

The first commit b482537 is the meat of the change which adds a new instruction to use the reserve, deprecates the old one. And the rest of the commits fix the tests.

I tested this with #5285 against the monorepo master, and everything passes!

@joncinque joncinque changed the title stake-pool: stake-pool: add new version of DecreaseValidatorStake to use reserve, add compatibility with master Sep 20, 2023
@2501babe
Copy link
Member

noting to myself the commit moved to b482537

@joncinque
Copy link
Contributor Author

noting to myself the commit moved to b482537

Ah darn, sorry about that. Yes, exactly.

2501babe
2501babe previously approved these changes Sep 22, 2023
@joncinque
Copy link
Contributor Author

Merging before all checks are finished -- the test-sbf section did pass

@joncinque joncinque merged commit 57400cb into solana-labs:master Sep 25, 2023
9 checks passed
@joncinque joncinque deleted the spdecrer branch September 25, 2023 17:36
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