aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-10 18:20:42 +0800
committerobscuren <geffobscura@gmail.com>2014-02-10 18:20:42 +0800
commit8db7d791f0cee0fdcf574a9bcf34467dc00e313e (patch)
treed5ba28fb6863f32cbc1a2f72202f32c7fa88035a /peer.go
parenta50b4f6b11d9299366a8026588cddae65fdbd085 (diff)
downloadgo-tangerine-8db7d791f0cee0fdcf574a9bcf34467dc00e313e.tar
go-tangerine-8db7d791f0cee0fdcf574a9bcf34467dc00e313e.tar.gz
go-tangerine-8db7d791f0cee0fdcf574a9bcf34467dc00e313e.tar.bz2
go-tangerine-8db7d791f0cee0fdcf574a9bcf34467dc00e313e.tar.lz
go-tangerine-8db7d791f0cee0fdcf574a9bcf34467dc00e313e.tar.xz
go-tangerine-8db7d791f0cee0fdcf574a9bcf34467dc00e313e.tar.zst
go-tangerine-8db7d791f0cee0fdcf574a9bcf34467dc00e313e.zip
Corrected version number in error log
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/peer.go b/peer.go
index 9848095ca..6c2d6c8b5 100644
--- a/peer.go
+++ b/peer.go
@@ -283,13 +283,14 @@ out:
if err != nil {
log.Println(err)
- } else {
- if p.catchingUp && msg.Data.Length() > 1 {
- p.catchingUp = false
- p.CatchupWithPeer()
- }
}
}
+
+ // If we're catching up, try to catch up further.
+ if p.catchingUp && msg.Data.Length() > 1 {
+ p.catchingUp = false
+ p.CatchupWithPeer()
+ }
case ethwire.MsgTxTy:
// If the message was a transaction queue the transaction
// in the TxPool where it will undergo validation and
@@ -458,7 +459,7 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
c := msg.Data
if c.Get(0).AsUint() != 3 {
- log.Println("Invalid peer version. Require protocol v 2")
+ log.Println("Invalid peer version. Require protocol v3")
p.Stop()
return
}