Commit 9b931016 authored by Mark Tyneway's avatar Mark Tyneway

op-node: remove deprecated `Pretty()` call

Use `String()` over `Pretty()`

- https://github.com/libp2p/go-libp2p/pull/2563
- https://github.com/libp2p/go-libp2p-pubsub/issues/547
parent 7bc7ce30
...@@ -142,7 +142,7 @@ func (n *NodeP2P) init(resourcesCtx context.Context, rollupCfg *rollup.Config, l ...@@ -142,7 +142,7 @@ func (n *NodeP2P) init(resourcesCtx context.Context, rollupCfg *rollup.Config, l
if err != nil { if err != nil {
return fmt.Errorf("failed to join blocks gossip topic: %w", err) return fmt.Errorf("failed to join blocks gossip topic: %w", err)
} }
log.Info("started p2p host", "addrs", n.host.Addrs(), "peerID", n.host.ID().Pretty()) log.Info("started p2p host", "addrs", n.host.Addrs(), "peerID", n.host.ID().String())
tcpPort, err := FindActiveTCPPort(n.host) tcpPort, err := FindActiveTCPPort(n.host)
if err != nil { if err != nil {
......
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