aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2018-08-21 22:33:04 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-21 22:33:04 +0800
commita063fe9b2defdb595068483b4c5df41f1a3a4860 (patch)
tree1893f4e1744f07bfc89d9be017dd16548473baa3
parent1dcad8b2de5d835da13bfac600c181fd331c149f (diff)
downloaddexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar.gz
dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar.zst
dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.zip
miner: fix uncle iteration logic (#17469)
-rw-r--r--miner/worker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 2f76f2a92..23cfaf225 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -308,7 +308,7 @@ func (w *worker) mainLoop() {
return false
}
uncles = append(uncles, uncle.Header())
- return true
+ return false
})
w.commit(uncles, nil, true, start)
}
@@ -522,7 +522,7 @@ func (w *worker) updateSnapshot() {
return false
}
uncles = append(uncles, uncle.Header())
- return true
+ return false
})
w.snapshotBlock = types.NewBlock(