Move no-0-rent rent dist. behavior under feature (#12804) (#12810)

(cherry picked from commit 2f5bb7e507)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2020-10-12 10:42:01 +00:00
committed by GitHub
parent 033c87e3f1
commit 9c72bf871f

View File

@ -2561,7 +2561,7 @@ impl Bank {
} else {
rent_share
};
if rent_to_be_paid > 0 {
if !enforce_fix || rent_to_be_paid > 0 {
let mut account = self.get_account(&pubkey).unwrap_or_default();
account.lamports += rent_to_be_paid;
self.store_account(&pubkey, &account);