iterator returned wrong value

This commit is contained in:
obscuren 2015-03-20 18:00:54 +01:00
parent 1821d1af48
commit ecd10d2cf7
1 changed files with 1 additions and 2 deletions

View File

@ -213,8 +213,7 @@ func (self *ethProtocol) handle() error {
var i int var i int
iter := func() (hash common.Hash, ok bool) { iter := func() (hash common.Hash, ok bool) {
var h common.Hash err := msgStream.Decode(&hash)
err := msgStream.Decode(&h)
if err == rlp.EOL { if err == rlp.EOL {
return common.Hash{}, false return common.Hash{}, false
} else if err != nil { } else if err != nil {