-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Prevent Rent-reward recipients from ending up RentPaying #30130
Prevent Rent-reward recipients from ending up RentPaying #30130
Conversation
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, just nits.
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. thanks!
How about adding a log or stat for rent credit that result in rent paying account when the feature is not enabled, so that we can gather such info on mnb now? |
898209a
to
0e89393
Compare
0e89393
to
ffadad0
Compare
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.
Nice and clean. thanks!
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. thanks for the changes!
(cherry picked from commit a14473e)
@CriesofCarrots thanks! |
Problem
There is still one way accounts can end up newly rent-paying: a validator identity account with a very small or zero balance may receive a sub-rent-exemption rent distribution here:
solana/runtime/src/bank.rs
Line 5035 in 151585e
Summary of Changes
Add feature-gate that, when active, will burn attempted rent distributions that do not meet rent-state transition requirements
Piggy-backs on #16847 (which in retrospect, should have included a test. I wasted some time thinking the
test_distribute_rent_to_validators_overflow
was testing the credit-overflow checked in that PR)