Skip to content
Snippets Groups Projects
Commit 7142a16d authored by Pierre Krieger's avatar Pierre Krieger Committed by GitHub
Browse files

No longer display the legacy representation of the PeerId (#7230)

parent 5c0413ac
Branches
No related merge requests found
......@@ -59,7 +59,7 @@ use sp_runtime::{
};
use sp_utils::mpsc::{tracing_unbounded, TracingUnboundedReceiver, TracingUnboundedSender};
use std::{
borrow::{Borrow, Cow},
borrow::Cow,
collections::{HashMap, HashSet},
fs,
marker::PhantomData,
......@@ -233,12 +233,10 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkWorker<B, H> {
let local_identity = params.network_config.node_key.clone().into_keypair()?;
let local_public = local_identity.public();
let local_peer_id = local_public.clone().into_peer_id();
let local_peer_id_legacy = bs58::encode(Borrow::<[u8]>::borrow(&local_peer_id)).into_string();
info!(
target: "sub-libp2p",
"🏷 Local node identity is: {} (legacy representation: {})",
"🏷 Local node identity is: {}",
local_peer_id.to_base58(),
local_peer_id_legacy
);
let checker = params.on_demand.as_ref()
......
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