Skip to content

Commit a063fe9

Browse files
rjl493456442karalabe
authored andcommitted
miner: fix uncle iteration logic (#17469)
1 parent 1dcad8b commit a063fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

miner/worker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func (w *worker) mainLoop() {
308308
return false
309309
}
310310
uncles = append(uncles, uncle.Header())
311-
return true
311+
return false
312312
})
313313
w.commit(uncles, nil, true, start)
314314
}
@@ -522,7 +522,7 @@ func (w *worker) updateSnapshot() {
522522
return false
523523
}
524524
uncles = append(uncles, uncle.Header())
525-
return true
525+
return false
526526
})
527527

528528
w.snapshotBlock = types.NewBlock(

0 commit comments

Comments
 (0)