Skip to content

Commit a09c74e

Browse files
fix updateSnapshot
1 parent de0385e commit a09c74e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

miner/scroll_worker.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,13 @@ func (w *worker) handlePipelineResult(res *pipeline.Result) error {
541541
w.currentPipeline.Release()
542542
w.currentPipeline = nil
543543

544+
if res.FinalBlock != nil {
545+
w.updateSnapshot(res.FinalBlock)
546+
}
547+
544548
// Rows being nil without an OverflowingTx means that block didn't go thru CCC,
545549
// which means that we are not the sequencer. Do not attempt to commit.
546-
if res.Rows == nil && res.OverflowingTx == nil {
547-
if res.FinalBlock != nil {
548-
w.updateSnapshot(res.FinalBlock)
549-
}
550+
if res.Rows == nil && res.OverflowingTx == nil {x
550551
return nil
551552
}
552553

0 commit comments

Comments
 (0)