miner: add additional log (#29193)
Adds a debug level log if the payload building failed for whatever reason
This commit is contained in:
parent
4bd55a064c
commit
6c76b813df
@ -229,6 +229,8 @@ func (miner *Miner) buildPayload(args *BuildPayloadArgs) (*Payload, error) {
|
|||||||
r := miner.generateWork(fullParams)
|
r := miner.generateWork(fullParams)
|
||||||
if r.err == nil {
|
if r.err == nil {
|
||||||
payload.update(r, time.Since(start))
|
payload.update(r, time.Since(start))
|
||||||
|
} else {
|
||||||
|
log.Info("Error while generating work", "id", payload.id, "err", r.err)
|
||||||
}
|
}
|
||||||
timer.Reset(miner.config.Recommit)
|
timer.Reset(miner.config.Recommit)
|
||||||
case <-payload.stop:
|
case <-payload.stop:
|
||||||
|
Loading…
Reference in New Issue
Block a user