Skip to content

Commit

Permalink
Uses RENT_EXEMPT_RENT_EPOCH to mark account as rent exempt (solana-…
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 15, 2023
1 parent b5659af commit 67dab71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts-db/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use {
ancestors::Ancestors,
blockhash_queue::BlockhashQueue,
nonce_info::{NonceFull, NonceInfo},
rent_collector::RentCollector,
rent_collector::{RentCollector, RENT_EXEMPT_RENT_EPOCH},
rent_debits::RentDebits,
storable_accounts::StorableAccounts,
transaction_error_metrics::TransactionErrorMetrics,
Expand Down Expand Up @@ -402,7 +402,7 @@ impl Accounts {
// All new accounts must be rent-exempt (enforced in Bank::execute_loaded_transaction).
// Currently, rent collection sets rent_epoch to u64::MAX, but initializing the account
// with this field already set would allow us to skip rent collection for these accounts.
default_account.set_rent_epoch(u64::MAX);
default_account.set_rent_epoch(RENT_EXEMPT_RENT_EPOCH);
}
(default_account.data().len(), default_account, 0)
})
Expand Down

0 comments on commit 67dab71

Please sign in to comment.