Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
require stake, vote and executable accounts to be rent exempt #5928
Right now, stake and vote accounts are not required to be rent exempt, this leads to scenario where ill-configured accounts are unable to load after their balance is exhausted.
Summary of Changes
Require stake and vote accounts to be exempt in order to be initialized.
I don't think this approach is gonna work (also I think you want to split executable and stake/vote/etc into separate PRs)
Using this approach can strand the lamports in an account, in fact it may actually burn lamports to create the account (part of the rent design is for the system program to initialize rent_epoch), then fail to initialize.
Two other approaches that might work better:
I think I'd prefer the former.
@@ Coverage Diff @@ ## master #5928 +/- ## ======================================== + Coverage 72% 74.2% +2.2% ======================================== Files 236 236 Lines 43088 41906 -1182 ======================================== + Hits 31032 31129 +97 + Misses 12056 10777 -1279