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 {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user