Skip to content

Commit

Permalink
chore: halt production incase of production error (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin authored Nov 16, 2023
1 parent ec633de commit 9b36bad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/produce.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (m *Manager) ProduceBlockLoop(ctx context.Context) {
}
if err != nil {
m.logger.Error("error while producing block", "error", err)
m.shouldProduceBlocksCh <- false
continue
}
//If empty blocks enabled, after block produced, reset the timeout timer
Expand Down

0 comments on commit 9b36bad

Please sign in to comment.