call waitFunc callback on mining error

This commit is contained in:
Yusef Napora 2020-07-03 09:56:40 -04:00
parent d3a1261f1e
commit d6d68b9096

View File

@ -158,6 +158,7 @@ func (m *Miner) mine(ctx context.Context) {
if err != nil { if err != nil {
log.Errorf("mining block failed: %+v", err) log.Errorf("mining block failed: %+v", err)
m.niceSleep(time.Second) m.niceSleep(time.Second)
onDone(false)
continue continue
} }
lastBase = *base lastBase = *base