Skip to content

Commit d0c2e05

Browse files
authored
fix(sim): shorten simulation deadline (#120)
* fix(sim): shorten simulation deadline We need to take into account that Quincey stops signing 2s before the end of the slot. We were not doing this correctly before. * chore: comment
1 parent 1d10cb6 commit d0c2e05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tasks/block/sim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ impl Simulator {
215215
// remaining, we need to subtract it from the slot duration
216216
let remaining = self.slot_calculator().slot_duration() - timepoint;
217217

218-
// We add a 1500 ms buffer to account for sequencer stopping signing.
218+
// We add a 2500 ms buffer to account for sequencer stopping signing.
219219
let deadline =
220-
Instant::now() + Duration::from_secs(remaining) - Duration::from_millis(1500);
220+
Instant::now() + Duration::from_secs(remaining) - Duration::from_millis(2500);
221221

222222
deadline.max(Instant::now())
223223
}

0 commit comments

Comments
 (0)