File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,11 +213,11 @@ impl Simulator {
213
213
214
214
// We have the timepoint in seconds into the slot. To find out what's
215
215
// 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 ) ;
217
218
218
219
// 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) ;
221
221
222
222
debug ! (
223
223
timepoint,
You can’t perform that action at this time.
0 commit comments