Skip to content

Commit

Permalink
chore: add error log for FinalizeAndAssemble error (#196)
Browse files Browse the repository at this point in the history
When FinalizeAndAssemble returns error, the caller functions does not check and
log anything which causes difficulty when debugging. This commit adds a simple
error log.
  • Loading branch information
minh-bq authored Jan 19, 2023
1 parent c13acfb commit 66f2055
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ func (w *worker) commit(uncles []*types.Header, interval func(), update bool, st
// As consortium does not use uncles, we don't care about copying uncles here
block, receipts, err := w.engine.FinalizeAndAssemble(w.chain, env.header, env.state, env.txs, uncles, env.receipts)
if err != nil {
log.Error("Failed to FinalizeAndAssemble a block", "error", err)
return err
}

Expand Down

0 comments on commit 66f2055

Please sign in to comment.