Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Sep 20, 2024
1 parent 6f1e601 commit 86f01b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miner/scroll_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r
reorgReason: reorgReason,
}

// initiliaze pending block with an empty block to make sure we always have
// a pending block to serve RPC requests
w.updateSnapshot()
return nil
}
Expand Down

0 comments on commit 86f01b8

Please sign in to comment.