Skip to content

Commit

Permalink
Use add_cycles_no_checking instead of add_cycles in exec_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Jan 20, 2025
1 parent 6429889 commit ac0c2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ where
.ok_or_else(|| Error::Unexpected("Unable to find VM Id".to_string()))?;
old_machine
.machine
.add_cycles(EXEC_LOAD_ELF_V2_CYCLES_BASE)?;
.add_cycles_no_checking(EXEC_LOAD_ELF_V2_CYCLES_BASE)?;
let old_cycles = old_machine.machine.cycles();
let max_cycles = old_machine.machine.max_cycles();
let (context, mut new_machine) = self.create_dummy_vm(&vm_id)?;
Expand Down

0 comments on commit ac0c2b0

Please sign in to comment.