mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-12 11:06:40 +00:00
miner: fix uncle iteration logic (#17469)
This commit is contained in:
parent
1dcad8b2de
commit
a063fe9b2d
1 changed files with 2 additions and 2 deletions
|
|
@ -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() {
|
||||||
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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue