accounts: Don't collect rent on newly created accounts (#26851)
This commit is contained in:
parent
a69ee79111
commit
f210182851
|
@ -1292,7 +1292,9 @@ impl Accounts {
|
||||||
);
|
);
|
||||||
|
|
||||||
if execution_status.is_ok() || is_nonce_account || is_fee_payer {
|
if execution_status.is_ok() || is_nonce_account || is_fee_payer {
|
||||||
if account.rent_epoch() == INITIAL_RENT_EPOCH {
|
if !preserve_rent_epoch_for_rent_exempt_accounts
|
||||||
|
&& account.rent_epoch() == INITIAL_RENT_EPOCH
|
||||||
|
{
|
||||||
let rent = rent_collector
|
let rent = rent_collector
|
||||||
.collect_from_created_account(
|
.collect_from_created_account(
|
||||||
address,
|
address,
|
||||||
|
|
Loading…
Reference in New Issue