aboutsummaryrefslogtreecommitdiff
path: root/miner
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-10-21 17:34:00 -0400
committerDeterminant <ted.sybil@gmail.com>2019-10-21 17:34:00 -0400
commitf0fdb5dfb215bebc54d2a62e54f0c7ae3e71ff91 (patch)
treed435d2b2e0ca3e8b6255c3b12b49e8a9ac7f0575 /miner
parent190b04fcbcadf4807c5c2bb0ef9e528bbff62e32 (diff)
...
Diffstat (limited to 'miner')
-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)