Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Set slot and env in tx batch specific cache (#35377)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 authored Mar 1, 2024
1 parent a7f9fe1 commit 7399178
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion svm/src/transaction_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,12 @@ impl<FG: ForkGraph> TransactionBatchProcessor<FG> {
.finish_cooperative_loading_task(self.slot, key, program)
&& limit_to_load_programs
{
let mut ret = LoadedProgramsForTxBatch::default();
let mut ret = LoadedProgramsForTxBatch::new(
self.slot,
loaded_programs_cache
.get_environments_for_epoch(self.epoch)
.clone(),
);
ret.hit_max_limit = true;
return ret;
}
Expand Down

0 comments on commit 7399178

Please sign in to comment.