Skip to content

Commit

Permalink
miner: fix uncle iteration logic (ethereum#17469)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and karalabe committed Aug 21, 2018
1 parent 1dcad8b commit a063fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -522,7 +522,7 @@ func (w *worker) updateSnapshot() {
return false
}
uncles = append(uncles, uncle.Header())
return true
return false
})

w.snapshotBlock = types.NewBlock(
Expand Down

0 comments on commit a063fe9

Please sign in to comment.