Skip to content

Commit

Permalink
option type check
Browse files Browse the repository at this point in the history
  • Loading branch information
damip authored and adrien-zinger committed Dec 10, 2021
1 parent 7f1945d commit 5eb3f4b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions massa-execution/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,21 @@ impl ExecutionWorker {

/// fills the remaining slots until now() with miss executions
fn fill_misses_until_now(&mut self) -> Result<(), ExecutionError> {
let end_step = get_current_latest_block_slot(
if let Some(end_step) = get_current_latest_block_slot(
self.thread_count,
self.t0,
self.genesis_timestamp,
self.clock_compensation,
)?;
while self.last_active_slot < end_step {
self.last_active_slot = self.last_active_slot.get_next_slot(self.thread_count)?;
self.vm
.run_active_step(&ExecutionStep {
slot: self.last_active_slot,
block: None,
})
.await;
)? {
while self.last_active_slot < end_step {
self.last_active_slot = self.last_active_slot.get_next_slot(self.thread_count)?;
self.vm
.run_active_step(&ExecutionStep {
slot: self.last_active_slot,
block: None,
})
.await;
}
}
Ok(())
}
Expand Down

0 comments on commit 5eb3f4b

Please sign in to comment.