Skip to content

Commit ecd10d2

Browse files
committed
iterator returned wrong value
1 parent 1821d1a commit ecd10d2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎eth/protocol.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ func (self *ethProtocol) handle() error {
213213

214214
var i int
215215
iter := func() (hash common.Hash, ok bool) {
216-
var h common.Hash
217-
err := msgStream.Decode(&h)
216+
err := msgStream.Decode(&hash)
218217
if err == rlp.EOL {
219218
return common.Hash{}, false
220219
} else if err != nil {

0 commit comments

Comments
 (0)