From ecd10d2cf765072cd74347b9e0ca2bb85091450f Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 20 Mar 2015 18:00:54 +0100 Subject: [PATCH] iterator returned wrong value --- eth/protocol.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eth/protocol.go b/eth/protocol.go index 1999d9807e..494c1c1bb0 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -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 {