iterator returned wrong value
This commit is contained in:
parent
1821d1af48
commit
ecd10d2cf7
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue