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

Remove stake split overflow opportunities #13649

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

CriesofCarrots
Copy link
Contributor

Problem

If we upgrade to stake-program-v2 before performing the accounts rewrite (#13461), there are a couple opportunities for overflow on split operations against accounts where rent_exempt_reserve > self.lamports().

Summary of Changes

Fix them

Copy link
Member

@ryoqun ryoqun left a comment

Choose a reason for hiding this comment

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

lgtm!

@CriesofCarrots
Copy link
Contributor Author

CI failure is unrelated, fixed by #13645

@CriesofCarrots CriesofCarrots merged commit a7bed62 into solana-labs:master Nov 17, 2020
mergify bot pushed a commit that referenced this pull request Nov 17, 2020
mergify bot pushed a commit that referenced this pull request Nov 17, 2020
mergify bot added a commit that referenced this pull request Nov 17, 2020
(cherry picked from commit a7bed62)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
mergify bot added a commit that referenced this pull request Nov 17, 2020
(cherry picked from commit a7bed62)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
@CriesofCarrots CriesofCarrots deleted the stake-overflow branch November 18, 2020 00:26
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