diff options
author | gary rong <garyrong0905@gmail.com> | 2018-08-21 22:33:04 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-21 22:33:04 +0800 |
commit | a063fe9b2defdb595068483b4c5df41f1a3a4860 (patch) | |
tree | 1893f4e1744f07bfc89d9be017dd16548473baa3 /miner | |
parent | 1dcad8b2de5d835da13bfac600c181fd331c149f (diff) | |
download | dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar.gz dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar.bz2 dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar.lz dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar.xz dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.tar.zst dexon-a063fe9b2defdb595068483b4c5df41f1a3a4860.zip |
miner: fix uncle iteration logic (#17469)
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 4 |
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( |