From f370f21a53c6732f3a7927017f43dcd4015d0949 Mon Sep 17 00:00:00 2001 From: qinglin89 <316032931@qq.com> Date: Wed, 22 Mar 2023 01:23:45 +0800 Subject: [PATCH] miner: add fallthrough for switch cases --- miner/worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner/worker.go b/miner/worker.go index d44187f928..37f458693e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1142,7 +1142,9 @@ LOOP: log.Debug("commitWork abort", "err", err) return case errors.Is(err, errBlockInterruptedByRecommit): + fallthrough case errors.Is(err, errBlockInterruptedByTimeout): + fallthrough case errors.Is(err, errBlockInterruptedByOutOfGas): // break the loop to get the best work log.Debug("commitWork finish", "reason", err)