aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index 4b0523e70..fa683e488 100644
--- a/peer.go
+++ b/peer.go
@@ -403,7 +403,7 @@ func (p *Peer) HandleInbound() {
}
}
}
- if !p.ethereum.StateManager().BlockChain().HasBlock(lastBlock.Hash()) {
+ if !blockChain.HasBlock(lastBlock.Hash()) {
// If we can't find a common ancenstor we need to request more blocks.
// FIXME: At one point this won't scale anymore since we are not asking for an offset
// we just keep increasing the amount of blocks.