This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Commit 3d01ffc
docs: custom-libp2p example print peer id in swarm addresses on startup (#2775)
Since libp2p/js-libp2p#558 js-libp2p now
requires peer ids to be part of dialled multiaddrs.
Previously a user was able to copy/paste swarm addresses printed as
part of the daemon starting up but now they can't because the peer
id is not included in the console output.
This PR prints the node's peer id as part of the swarm address to
let people continue doing this and fixes the custom-libp2p example.1 parent c314895 commit 3d01ffc
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
94 | 106 | | |
95 | 107 | | |
96 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments