Преглед изворни кода

iterator returned wrong value

obscuren пре 10 година
родитељ
комит
ecd10d2cf7
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      eth/protocol.go

+ 1 - 2
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 {