-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add a feature to disable rent collection #33945
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #33945 +/- ##
==========================================
+ Coverage 81.8% 81.9% +0.1%
==========================================
Files 766 812 +46
Lines 209154 219664 +10510
==========================================
+ Hits 171206 180038 +8832
- Misses 37948 39626 +1678 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Co-authored-by: Brooks <[email protected]>
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Why did this land before the SIMD? |
yes, seems like it should've had simd. The whole goal was to ease the way for other clients, and was done after discussions with fd... Ha. |
Here is the SIMD https://github.com/solana-foundation/solana-improvement-documents/pull/84/files. |
I am on that repo, and did see that SIMD. It looks like you’ve done some work on it today, but as of my comment this morning, it didn’t describe a design aside from linking to this PR, hadn’t had any discussion, and isn’t approved and merged. |
Yeah. I worked on the SIMD today. Hopefully, it won't take us too long to get SIMD approved, since today we don't have any rent paying accounts on the mainnet. In retrospect, we should have merged SIMD PR before merging this PR. |
Problem
The rent paying accounts on solana are phasing out.
Add a feature gate to disable rent collection. When there are no longer any rent
paying accounts on the network, we can enable this feature.
Summary of Changes
disable_rent_collection
featureNote: This feature only disables rent collection (not rewrite), all accounts are still being rewritten. To skip account rewrite, please refer to
skip_rent_rewrite
feature #26599.Feature Gate Issue: #33946