Skip to content

Commit

Permalink
Always limit effective slot to the begin of the current epoch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Feb 21, 2024
1 parent 537c3d8 commit 2d370f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions svm/src/transaction_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,10 @@ impl<FG: ForkGraph> TransactionBatchProcessor<FG> {

let mut timings = ExecuteDetailsTimings::default();
load_program_metrics.submit_datapoint(&mut timings);
loaded_program.effective_slot = loaded_program
.effective_slot
.max(self.epoch_schedule.get_first_slot_in_epoch(effective_epoch));
if let Some(recompile) = recompile {
loaded_program.effective_slot = loaded_program
.effective_slot
.max(self.epoch_schedule.get_first_slot_in_epoch(effective_epoch));
loaded_program.tx_usage_counter =
AtomicU64::new(recompile.tx_usage_counter.load(Ordering::Relaxed));
loaded_program.ix_usage_counter =
Expand Down

0 comments on commit 2d370f6

Please sign in to comment.