call waitFunc callback on mining error
This commit is contained in:
parent
d3a1261f1e
commit
d6d68b9096
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user