diff --git a/miner/scroll_worker.go b/miner/scroll_worker.go index d9dbc9f4a5e6..3d01f6e9bf40 100644 --- a/miner/scroll_worker.go +++ b/miner/scroll_worker.go @@ -279,7 +279,8 @@ func (w *worker) mainLoop() { default: } - if _, isRetryable := err.(retryableCommitError); isRetryable { + var retryableCommitError *retryableCommitError + if errors.As(err, &retryableCommitError) { 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