Skip to content

Commit 86f01b8

Browse files
committed
add comment
1 parent 6f1e601 commit 86f01b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

miner/scroll_worker.go

+2
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r
508508
reorgReason: reorgReason,
509509
}
510510

511+
// initiliaze pending block with an empty block to make sure we always have
512+
// a pending block to serve RPC requests
511513
w.updateSnapshot()
512514
return nil
513515
}

0 commit comments

Comments
 (0)