Skip to content

Commit

Permalink
Further ensure no uncles are added to worker
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalank committed Feb 19, 2022
1 parent d73eb4f commit 4f38b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ func (w *worker) commitNewWork(interrupt *int32, noempty bool, timestamp int64)
}
}
for hash, uncle := range blocks {
if len(uncles) == 2 {
if len(uncles) == 0 {
break
}
if err := w.commitUncle(env, uncle.Header()); err != nil {
Expand Down

0 comments on commit 4f38b39

Please sign in to comment.