Skip to content

Commit a7918a2

Browse files
author
HaoranYi
committed
don't insert programdata account into read cache
1 parent 7d75451 commit a7918a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

svm/src/program_loader.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ pub(crate) fn load_program_accounts<CB: TransactionProcessingCallback>(
103103
programdata_address,
104104
}) = program_account.state()
105105
{
106-
if let Some(programdata_account) = callbacks.get_account_shared_data(&programdata_address) {
106+
if let Some((programdata_account, _slot)) =
107+
callbacks.load_account_with(&programdata_address, |_| false)
108+
{
107109
if let Ok(UpgradeableLoaderState::ProgramData {
108110
slot,
109111
upgrade_authority_address: _,

0 commit comments

Comments
 (0)