aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-21 01:00:54 +0800
committerobscuren <geffobscura@gmail.com>2015-03-21 01:00:54 +0800
commitecd10d2cf765072cd74347b9e0ca2bb85091450f (patch)
tree416a60fb2242569683be8936d21e147ac75dbba1
parent1821d1af48e5fa11eb81fe7f6e5372737bb36ec9 (diff)
downloadgo-tangerine-ecd10d2cf765072cd74347b9e0ca2bb85091450f.tar.gz
go-tangerine-ecd10d2cf765072cd74347b9e0ca2bb85091450f.tar.zst
go-tangerine-ecd10d2cf765072cd74347b9e0ca2bb85091450f.zip
iterator returned wrong value
-rw-r--r--eth/protocol.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/protocol.go b/eth/protocol.go
index 1999d9807..494c1c1bb 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 {