From d7564a9a25c06f0c9ad9440f02b09e20e0ca30bc Mon Sep 17 00:00:00 2001 From: zelig Date: Thu, 19 Mar 2015 23:33:52 +0000 Subject: fix common.Hash conversion --- blockpool/peers.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blockpool/peers.go') diff --git a/blockpool/peers.go b/blockpool/peers.go index 1ace01fdf..80168b206 100644 --- a/blockpool/peers.go +++ b/blockpool/peers.go @@ -7,6 +7,7 @@ import ( "sync" "time" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/errs" ) @@ -471,6 +472,7 @@ func (self *peer) getBlockHashes() { } } headKey := self.parentHash.Str() + height := self.bp.status.chain[headKey] + 1 self.bp.status.chain[self.currentBlockHash.Str()] = height if height > self.bp.status.values.LongestChain { self.bp.status.values.LongestChain = height -- cgit