Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading