iterator returned wrong value

This commit is contained in:
obscuren 2015-03-20 18:00:54 +01:00
parent 1821d1af48
commit ecd10d2cf7

View File

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