diff --git a/bzz/protocol.go b/bzz/protocol.go index 4bffa8dbdc..ee6340a64a 100644 --- a/bzz/protocol.go +++ b/bzz/protocol.go @@ -7,6 +7,7 @@ registering peers with the DHT */ import ( + "fmt" "net" "time" @@ -350,6 +351,10 @@ func (self *bzzProtocol) LastActive() time.Time { func (self *bzzProtocol) Drop() { } +func (self *bzzProtocol) String() string { + return fmt.Sprintf("%4x: %v\n", self.node.Sha().Bytes()[:4], self.Url()) +} + func newPeerAddrFromNode(node *discover.Node) *peerAddr { return &peerAddr{ ID: node.ID[:],