From f27150b71c06944d45fdbaed6f45fc10bef29495 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Mon, 30 Sep 2024 14:18:53 -0500 Subject: [PATCH] as_sanitized_transaction --- runtime/src/bank.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 77661a4bc43cf2..685729d3d22038 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -100,7 +100,10 @@ use { solana_program_runtime::{ invoke_context::BuiltinFunctionWithContext, loaded_programs::ProgramCacheEntry, }, - solana_runtime_transaction::instructions_processor::process_compute_budget_instructions, + solana_runtime_transaction::{ + instructions_processor::process_compute_budget_instructions, + svm_transaction_adapter::SVMTransactionAdapter, + }, solana_sdk::{ account::{ create_account_shared_data_with_fields as create_account, from_account, Account, @@ -3902,7 +3905,12 @@ impl Bank { .accounts() .accounts_db .has_accounts_update_notifier() - .then(|| sanitized_txs.iter().collect::>()); + .then(|| { + sanitized_txs + .iter() + .map(|tx| tx.as_sanitized_transaction()) + .collect::>() + }); let (accounts_to_store, transactions) = collect_accounts_to_store( sanitized_txs,