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

Remove stake split overflow opportunities#13649

Merged
CriesofCarrots merged 1 commit intosolana-labs:masterfrom
CriesofCarrots:stake-overflow
Nov 17, 2020
Merged

Remove stake split overflow opportunities#13649
CriesofCarrots merged 1 commit intosolana-labs:masterfrom
CriesofCarrots:stake-overflow

Conversation

@CriesofCarrots
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants