aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-04 08:47:02 +0800
committerobscuren <geffobscura@gmail.com>2014-11-04 08:47:02 +0800
commit0c4adeceaeaff7a954fa7103a2200653ef217572 (patch)
tree8919f34b6fd356ca8d341d23d8cada83eb6d8a05 /peer.go
parentf76f953f0cad3b55d6817ce766def50a587f1d19 (diff)
downloadgo-tangerine-0c4adeceaeaff7a954fa7103a2200653ef217572.tar.gz
go-tangerine-0c4adeceaeaff7a954fa7103a2200653ef217572.tar.zst
go-tangerine-0c4adeceaeaff7a954fa7103a2200653ef217572.zip
Properly list caps
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index 50daceb83..f5afb4595 100644
--- a/peer.go
+++ b/peer.go
@@ -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)