Skip to content

Commit 7613bf1

Browse files
committed
quick mafs
1 parent d9d4951 commit 7613bf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tasks/block/sim.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ impl Simulator {
213213

214214
// We have the timepoint in seconds into the slot. To find out what's
215215
// remaining, we need to subtract it from the slot duration
216-
let remaining = self.slot_calculator().slot_duration() - timepoint;
216+
// we also subtract 3 seconds to account for the sequencer stopping signing.
217+
let remaining = (self.slot_calculator().slot_duration() - timepoint).saturating_sub(3);
217218

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

222222
debug!(
223223
timepoint,

0 commit comments

Comments
 (0)