Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

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 requested a review from 2501babe September 20, 2023 15:30
@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
Contributor

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
@mergify mergify bot dismissed 2501babe’s stale review September 25, 2023 16:34

Pull request has been modified.

@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
@joncinque joncinque deleted the spdecrer branch September 25, 2023 17:36
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants