iterator returned wrong value
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user