Commit ecd10d2c authored by obscuren's avatar obscuren

iterator returned wrong value

parent 1821d1af
...@@ -213,8 +213,7 @@ func (self *ethProtocol) handle() error { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment