aboutsummaryrefslogtreecommitdiff
path: root/miner/worker.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-10-21 17:34:00 -0400
committerDeterminant <[email protected]>2019-10-21 17:34:00 -0400
commitf0fdb5dfb215bebc54d2a62e54f0c7ae3e71ff91 (patch)
treed435d2b2e0ca3e8b6255c3b12b49e8a9ac7f0575 /miner/worker.go
parent190b04fcbcadf4807c5c2bb0ef9e528bbff62e32 (diff)
...
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 19234ee..df1c601 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -637,6 +637,7 @@ func (w *worker) resultLoop() {
// Commit block and state to database.
//fmt.Printf("parent1: %s\n", w.chain.CurrentBlock().Hash().String())
stat, err := w.chain.WriteBlockWithState(block, receipts, task.state)
+ stat = core.CanonStatTy
//fmt.Printf("parent2: %s\n", w.chain.CurrentBlock().Hash().String())
if err != nil {
log.Error("Failed writing block to chain", "err", err)