Skip to content

Commit fa62883

Browse files
author
HaoranYi
committed
cache all accounts after loading
1 parent 8b4207a commit fa62883

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

svm/src/account_loader.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ fn load_transaction_accounts<CB: TransactionProcessingCallback>(
215215
} else {
216216
let is_account_writable = message.is_writable(i);
217217
callbacks
218-
.load_account_with(key, |account| {
219-
// only cache non program accounts
220-
!program_owners.contains(account.owner())
218+
.load_account_with(key, |_account| {
219+
// cache the account in read-only cache
220+
true
221221
})
222222
.map(|(mut account, _slot)| {
223223
if program_owners.contains(account.owner()) {

0 commit comments

Comments
 (0)