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

(cherry picked from commit 2f5bb7e507)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2020-10-12 09:57:32 +00:00
committed by GitHub
parent 5e97bd3d8a
commit 1f102d2617

View File

@ -2676,7 +2676,7 @@ impl Bank {
} else { } else {
rent_share 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(); let mut account = self.get_account(&pubkey).unwrap_or_default();
account.lamports += rent_to_be_paid; account.lamports += rent_to_be_paid;
self.store_account(&pubkey, &account); self.store_account(&pubkey, &account);