Commit 8db7d791 authored by obscuren's avatar obscuren

Corrected version number in error log

parent a50b4f6b
...@@ -283,13 +283,14 @@ out: ...@@ -283,13 +283,14 @@ out:
if err != nil { if err != nil {
log.Println(err) 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: case ethwire.MsgTxTy:
// If the message was a transaction queue the transaction // If the message was a transaction queue the transaction
// in the TxPool where it will undergo validation and // in the TxPool where it will undergo validation and
...@@ -458,7 +459,7 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) { ...@@ -458,7 +459,7 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
c := msg.Data c := msg.Data
if c.Get(0).AsUint() != 3 { 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() p.Stop()
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment