aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-03-24 17:56:52 +0800
committerMaran <maran.hidskes@gmail.com>2014-03-24 17:56:52 +0800
commitec6ec62dd4f3c4132c79b33fc20467ba98c16f10 (patch)
tree50a87162834b8921601bdeda785985da884c5821 /peer.go
parent97786d03d57e1ca79e34ce5fd9aa172c61c3e665 (diff)
downloaddexon-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar
dexon-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar.gz
dexon-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar.bz2
dexon-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar.lz
dexon-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar.xz
dexon-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar.zst
dexon-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.zip
Remove some xtra logs
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 b8e75c686..63059bcfb 100644
--- a/peer.go
+++ b/peer.go
@@ -316,7 +316,7 @@ func (p *Peer) HandleInbound() {
// 4. No: Let's request more blocks back.
// Make sure we are actually receiving anything
- if msg.Data.Len()-1 > 1 {
+ if msg.Data.Len()-1 > 1 && p.catchingUp {
// We requested blocks and now we need to make sure we have a common ancestor somewhere in these blocks so we can find
// common ground to start syncing from
lastBlock = ethchain.NewBlockFromRlpValue(msg.Data.Get(msg.Data.Len() - 1))