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

This commit is contained in:
Ryo Onodera 2020-10-12 17:47:52 +09:00 committed by GitHub
parent 80f9df169b
commit 2f5bb7e507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2676,7 +2676,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);