Properly list caps

This commit is contained in:
obscuren
2014-11-04 01:47:02 +01:00
parent f76f953f0c
commit 0c4adeceae
2 changed files with 6 additions and 3 deletions

View File

@ -673,6 +673,7 @@ func (p *Peer) pushPeers() {
}
func (self *Peer) pushStatus() {
fmt.Println("push status")
msg := wire.NewMessage(wire.MsgStatusTy, []interface{}{
uint32(ProtocolVersion),
uint32(NetVersion),
@ -825,7 +826,7 @@ func (p *Peer) handleHandshake(msg *wire.Msg) {
p.pushStatus()
}
capsStrs = append(capsStrs, cap)
capsStrs = append(capsStrs, fmt.Sprintf("%s/%d", cap, ver))
}
peerlogger.Infof("Added peer (%s) %d / %d (%v)\n", p.conn.RemoteAddr(), p.ethereum.Peers().Len(), p.ethereum.MaxPeers, capsStrs)