Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1631,14 +1631,18 @@ func (w *worker) commitWork(interrupt *int32, noempty bool, timestamp int64) {
timestamp: uint64(timestamp),
coinbase: coinbase,
})
if err != nil {
log.Error("Error in preparing work", "err", err)
return
}
if !wemixminer.IsPoW() { // Wemix
if coinbase, err := wemixminer.GetCoinbase(work.header.Number); err == nil {
work.coinbase = coinbase
} else {
log.Error("Error in getting coinbase", "err", err)
return
}
}
if err != nil {
return
}

if !wemixminer.IsPoW() { // Wemix
if !w.commitTransactionsEx(work, interrupt, start) {
Expand Down
Loading