diff --git a/difftest/offline/src/json_events.rs b/difftest/offline/src/json_events.rs index b0047e2a2..bf298ebdc 100644 --- a/difftest/offline/src/json_events.rs +++ b/difftest/offline/src/json_events.rs @@ -314,6 +314,10 @@ impl JsonEventRunner for SpikeRunner { let issue_idx = report.issue_idx; let cycle = report.cycle; + if count == 0 { + return Ok(()); + } + let mut should_retire: Option = None; if let Some(se) = self.commit_queue.iter_mut().rev().find(|se| se.issue_idx == issue_idx) {