Move no-0-rent rent dist. behavior under feature (#12804)
This commit is contained in:
parent
80f9df169b
commit
2f5bb7e507
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue