Set slot and env in tx batch specific cache (#35377)

This commit is contained in:
Pankaj Garg 2024-03-01 08:20:17 -08:00 committed by GitHub
parent a7f9fe103f
commit 7399178c78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}