From c93207b6ee9e727d2f05406392727c5bb02ad57e Mon Sep 17 00:00:00 2001 From: samliok Date: Thu, 2 Oct 2025 11:53:41 -0400 Subject: [PATCH] check if round has progressed --- epoch.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/epoch.go b/epoch.go index 376da9cb..15a0010b 100644 --- a/epoch.go +++ b/epoch.go @@ -1999,6 +1999,13 @@ func (e *Epoch) buildBlock() { digest := buildTheBlock() e.lock.Lock() defer e.lock.Unlock() + + if round != e.round { + // We have moved to the next round while building the block. + // No need to monitor progress for this round, as we have already moved on. + return digest + } + e.monitorProgress(round) return digest }