aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool/peers.go
diff options
context:
space:
mode:
Diffstat (limited to 'blockpool/peers.go')
-rw-r--r--blockpool/peers.go2
1 files changed, 2 insertions, 0 deletions
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