Commit a063fe9b authored by gary rong's avatar gary rong Committed by Péter Szilágyi

miner: fix uncle iteration logic (#17469)

parent 1dcad8b2
...@@ -308,7 +308,7 @@ func (w *worker) mainLoop() { ...@@ -308,7 +308,7 @@ func (w *worker) mainLoop() {
return false return false
} }
uncles = append(uncles, uncle.Header()) uncles = append(uncles, uncle.Header())
return true return false
}) })
w.commit(uncles, nil, true, start) w.commit(uncles, nil, true, start)
} }
...@@ -522,7 +522,7 @@ func (w *worker) updateSnapshot() { ...@@ -522,7 +522,7 @@ func (w *worker) updateSnapshot() {
return false return false
} }
uncles = append(uncles, uncle.Header()) uncles = append(uncles, uncle.Header())
return true return false
}) })
w.snapshotBlock = types.NewBlock( w.snapshotBlock = types.NewBlock(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment