miner/worker: use worker.current.state instead of task.state to keep it consistent with references to state in other parts of code

This commit is contained in:
amalraj.manigmail.com 2018-10-08 18:45:56 +08:00
parent 2ba4fe0ec0
commit 89cca5093d
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ func (w *worker) resultLoop() {
// Commit block and state to database.
stat, err := w.chain.WriteBlockWithState(block, allReceipts, task.state, nil)
stat, err := w.chain.WriteBlockWithState(block, allReceipts, work.state, nil)
if err != nil {
log.Error("Failed writWriteBlockAndStating block to chain", "err", err)
continue