From b3a759f7ce6b43b91a6a9a48195b1ae8182e2a78 Mon Sep 17 00:00:00 2001 From: evalir Date: Fri, 27 Jun 2025 12:10:31 +0200 Subject: [PATCH 1/2] 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. --- src/tasks/block/sim.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/block/sim.rs b/src/tasks/block/sim.rs index daa1c03..83a69b5 100644 --- a/src/tasks/block/sim.rs +++ b/src/tasks/block/sim.rs @@ -217,7 +217,7 @@ impl Simulator { // We add a 1500 ms buffer to account for sequencer stopping signing. let deadline = - Instant::now() + Duration::from_secs(remaining) - Duration::from_millis(1500); + Instant::now() + Duration::from_secs(remaining) - Duration::from_millis(2500); deadline.max(Instant::now()) } From 8cf53886989727fcdf77f05d413e258d18cdde9a Mon Sep 17 00:00:00 2001 From: evalir Date: Fri, 27 Jun 2025 12:12:26 +0200 Subject: [PATCH 2/2] chore: comment --- src/tasks/block/sim.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/block/sim.rs b/src/tasks/block/sim.rs index 83a69b5..6af48f5 100644 --- a/src/tasks/block/sim.rs +++ b/src/tasks/block/sim.rs @@ -215,7 +215,7 @@ impl Simulator { // remaining, we need to subtract it from the slot duration let remaining = self.slot_calculator().slot_duration() - timepoint; - // We add a 1500 ms buffer to account for sequencer stopping signing. + // We add a 2500 ms buffer to account for sequencer stopping signing. let deadline = Instant::now() + Duration::from_secs(remaining) - Duration::from_millis(2500);