提交 64bf493b 作者: Juan Batiz-Benet

swarm peers print pid.Pretty

上级 fbba7c8f
...@@ -60,7 +60,7 @@ ipfs swarm peers lists the set of peers this node is connected to. ...@@ -60,7 +60,7 @@ ipfs swarm peers lists the set of peers this node is connected to.
for i, c := range conns { for i, c := range conns {
pid := c.RemotePeer() pid := c.RemotePeer()
addr := c.RemoteMultiaddr() addr := c.RemoteMultiaddr()
addrs[i] = fmt.Sprintf("%s/%s", addr, pid) addrs[i] = fmt.Sprintf("%s/%s", addr, pid.Pretty())
} }
return &stringList{addrs}, nil return &stringList{addrs}, nil
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论