From d6d68b9096b857cd5f6b766f734212c7fbd975ce Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Fri, 3 Jul 2020 09:56:40 -0400 Subject: [PATCH] call waitFunc callback on mining error --- miner/miner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/miner/miner.go b/miner/miner.go index 7f83321c4..2f98e77b3 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -158,6 +158,7 @@ func (m *Miner) mine(ctx context.Context) { if err != nil { log.Errorf("mining block failed: %+v", err) m.niceSleep(time.Second) + onDone(false) continue } lastBase = *base