miner: add additional log (#29193)

Adds a debug level log if the payload building failed for whatever reason
This commit is contained in:
Marius van der Wijden 2024-03-12 14:29:35 +01:00 committed by GitHub
parent 4bd55a064c
commit 6c76b813df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -229,6 +229,8 @@ func (miner *Miner) buildPayload(args *BuildPayloadArgs) (*Payload, error) {
r := miner.generateWork(fullParams)
if r.err == nil {
payload.update(r, time.Since(start))
} else {
log.Info("Error while generating work", "id", payload.id, "err", r.err)
}
timer.Reset(miner.config.Recommit)
case <-payload.stop: