forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a feature to disable rent collection (solana-labs#33945)
* add a feature to disable rent collection * fix a test * fix a test * rekey * should collect rent * Update runtime/src/bank/fee_distribution.rs Co-authored-by: Brooks <[email protected]> * expand tests to cover both rent collection disabled and enabled * feedbacks * reviews - move should collect rent check out of rent collector into bank * enforce rent_epoch to u64:max when rent collection is disabled * review feedbacks and fix a test When rent fee collection is disabled, we won't collect rent for any account. If there are any rent paying accounts, their `rent_epoch` won't change too. * revise comments * update rent_epoch for rent exempted account * rebase * set rent_epoch in rent collection for rent exempted account * revert test change * don't assert --------- Co-authored-by: HaoranYi <[email protected]> Co-authored-by: Brooks <[email protected]>
- Loading branch information
1 parent
87d20ae
commit 60fdd85
Showing
5 changed files
with
106 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters