Skip to content

Commit

Permalink
reword
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Nov 27, 2024
1 parent 2593d63 commit 2ebe355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svm/src/account_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl<'a, CB: TransactionProcessingCallback> AccountLoader<'a, CB> {

let account = if let Some(account) = self.account_cache.get(account_key) {
// If lamports is 0, a previous transaction deallocated this account.
// We must shadow the cache entry so the account may be reopened.
// We return None instead of the account we found so it can be created fresh.
// We never evict from the cache, or else we would fetch stale state from accounts-db.
if account.lamports() == 0 {
None
Expand Down

0 comments on commit 2ebe355

Please sign in to comment.