Skip to content

Commit

Permalink
miner: add additional log (ethereum#29193)
Browse files Browse the repository at this point in the history
Adds a debug level log if the payload building failed for whatever reason
  • Loading branch information
MariusVanDerWijden authored Mar 12, 2024
1 parent 4bd55a0 commit 6c76b81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miner/payload_building.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6c76b81

Please sign in to comment.