Skip to content

Commit

Permalink
add warning log to retryable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Sep 5, 2024
1 parent 86e427b commit 2b77324
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/scroll_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ func (w *worker) mainLoop() {
var err error
for {
if _, isRetryable := err.(retryableCommitError); isRetryable {
log.Warn("failed to commit to a block, retrying", "err", err)
if _, err = w.tryCommitNewWork(time.Now(), w.current.header.ParentHash, w.current.reorgReason); err != nil {
continue
}
Expand Down

0 comments on commit 2b77324

Please sign in to comment.