miner: fix uncle iteration logic (#17469)

This commit is contained in:
gary rong 2018-08-21 22:33:04 +08:00 committed by Péter Szilágyi
parent 1dcad8b2de
commit a063fe9b2d
1 changed files with 2 additions and 2 deletions

View File

@ -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(