Corrected version number in error log

This commit is contained in:
obscuren 2014-02-10 11:20:42 +01:00
parent a50b4f6b11
commit 8db7d791f0
1 changed files with 7 additions and 6 deletions

13
peer.go
View File

@ -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
}