Skip to content

Commit

Permalink
Test missing programs were loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ksolana committed Jul 23, 2024
1 parent b442d9d commit 769eb36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion svm/src/transaction_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ impl<FG: ForkGraph> TransactionBatchProcessor<FG> {
})
.collect();

let mut loaded_programs_for_txs = None;
let mut loaded_programs_for_txs: Option<ProgramCacheForTxBatch> = None;
loop {
let (program_to_store, task_cookie, task_waiter) = {
// Lock the global cache.
Expand Down Expand Up @@ -1345,6 +1345,7 @@ mod tests {
limit_to_load_programs,
);
assert!(!result.hit_max_limit);
assert!(result.loaded_missing);
let program = result.find(&key).unwrap();
assert!(matches!(
program.program,
Expand Down

0 comments on commit 769eb36

Please sign in to comment.