From fa5955167ff77ea56301a65b08f2a0cdf9aa32be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Fri, 20 Sep 2024 14:50:51 +0300 Subject: [PATCH] fix: avoid committing empty blocks after the deadline --- miner/scroll_worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/scroll_worker.go b/miner/scroll_worker.go index 87edea049896..293c4398f2bc 100644 --- a/miner/scroll_worker.go +++ b/miner/scroll_worker.go @@ -396,7 +396,7 @@ func (w *worker) mainLoop() { // be automatically eliminated. if w.current != nil { shouldCommit, _ := w.processTxnSlice(ev.Txs) - if shouldCommit || w.current.deadlineReached { + if shouldCommit || (w.current.deadlineReached && len(w.current.txs) > 0) { _, err = w.commit() } }