mirror of https://github.com/poanetwork/quorum.git
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:
parent
2ba4fe0ec0
commit
89cca5093d
|
@ -606,7 +606,7 @@ func (w *worker) resultLoop() {
|
||||||
|
|
||||||
|
|
||||||
// Commit block and state to database.
|
// 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 {
|
if err != nil {
|
||||||
log.Error("Failed writWriteBlockAndStating block to chain", "err", err)
|
log.Error("Failed writWriteBlockAndStating block to chain", "err", err)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue