Skip to content

Commit

Permalink
as_sanitized_transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Sep 30, 2024
1 parent 8d205e1 commit f27150b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -3902,7 +3905,12 @@ impl Bank {
.accounts()
.accounts_db
.has_accounts_update_notifier()
.then(|| sanitized_txs.iter().collect::<Vec<_>>());
.then(|| {
sanitized_txs
.iter()
.map(|tx| tx.as_sanitized_transaction())
.collect::<Vec<_>>()
});

let (accounts_to_store, transactions) = collect_accounts_to_store(
sanitized_txs,
Expand Down

0 comments on commit f27150b

Please sign in to comment.