Skip to content

Commit

Permalink
miner: fixed pending block refresh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sadoci committed Apr 12, 2022
1 parent 59cab3a commit aff46db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ func (w *worker) refreshPending(locked bool) {
log.Error("Failed to prepare header for mining", "err", err)
return
}
if env, err := w.makeEnv(parent, header, header.Coinbase); err != nil {
if env, err := w.makeEnv(parent, header, header.Coinbase); err == nil {
w.updateSnapshot(env)
}
}
Expand Down

0 comments on commit aff46db

Please sign in to comment.