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: Fund rent-exemption from reserve in decrease_additional #5288

Merged
merged 7 commits into from
Sep 20, 2023

Conversation

joncinque
Copy link
Contributor

Problem

We should fund the rent-exempt reserve for the transient stake account from the stake pool reserve during decrease.

Solution

To start with, require the reserve during decrease_additional_validator_stake, and then withdraw the rent-exemption from the reserve during processing.

The next step after this is to create a new instruction for a normal decrease without an ephemeral stake account. Or we could deprecate the old one and force people to always use this one.

2501babe
2501babe previously approved these changes Sep 20, 2023
@mergify mergify bot dismissed 2501babe’s stale review September 20, 2023 19:35

Pull request has been modified.

@joncinque joncinque merged commit 7492e38 into solana-labs:master Sep 20, 2023
9 checks passed
@joncinque joncinque deleted the spdecaddl branch September 20, 2023 20:02
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