Skip to content

Commit 630c4e6

Browse files
committed
nit
1 parent 0150802 commit 630c4e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

miner/scroll_worker.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,10 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r
535535
}
536536
prepareTimer.UpdateSince(prepareStart)
537537
} else {
538-
log.Info("All MessageQueueV1 messages processed, creating EuclidV2 transition block", "blockNumber", header.Number, "blockTime", header.Time, "firstV2MsgIndex", nextL1MsgIndex)
538+
// Only print log if we are the sequencer -- otherwise we will print confusing logs for the pending block.
539+
if w.isRunning() {
540+
log.Info("All MessageQueueV1 messages processed, creating EuclidV2 transition block", "blockNumber", header.Number, "blockTime", header.Time, "firstV2MsgIndex", nextL1MsgIndex)
541+
}
539542
}
540543
}
541544
}

0 commit comments

Comments
 (0)