miner: add additional log (#29193)

Adds a debug level log if the payload building failed for whatever reason
pull/29238/head
Marius van der Wijden 8 months ago committed by GitHub
parent 4bd55a064c
commit 6c76b813df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      miner/payload_building.go

@ -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:

Loading…
Cancel
Save