aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-01 16:21:43 +0800
committerobscuren <geffobscura@gmail.com>2014-08-01 16:21:43 +0800
commit5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b (patch)
treee973b3c2632d2d2a22d9c2949340f179faae152d /peer.go
parent5a2d62e4d9e551f16f094216da70b7a6f5d2bf00 (diff)
downloadgo-tangerine-5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b.tar.gz
go-tangerine-5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b.tar.zst
go-tangerine-5ede1224e48fd82961bd4a0b2ec1a3eda0b6d99b.zip
minor rlp things
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.