Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: print peer id in swarm addresses on startup #2775

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

achingbrain
Copy link
Member

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.

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.
@alanshaw alanshaw merged commit 60fe851 into master Feb 13, 2020
@alanshaw alanshaw deleted the refactor/print-peer-id-in-startup branch February 13, 2020 11:01
alanshaw pushed a commit that referenced this pull request Feb 13, 2020
…up (#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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants