mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 21:51:08 +00:00
No longer display the legacy representation of the PeerId (#7230)
This commit is contained in:
@@ -59,7 +59,7 @@ use sp_runtime::{
|
|||||||
};
|
};
|
||||||
use sp_utils::mpsc::{tracing_unbounded, TracingUnboundedReceiver, TracingUnboundedSender};
|
use sp_utils::mpsc::{tracing_unbounded, TracingUnboundedReceiver, TracingUnboundedSender};
|
||||||
use std::{
|
use std::{
|
||||||
borrow::{Borrow, Cow},
|
borrow::Cow,
|
||||||
collections::{HashMap, HashSet},
|
collections::{HashMap, HashSet},
|
||||||
fs,
|
fs,
|
||||||
marker::PhantomData,
|
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_identity = params.network_config.node_key.clone().into_keypair()?;
|
||||||
let local_public = local_identity.public();
|
let local_public = local_identity.public();
|
||||||
let local_peer_id = local_public.clone().into_peer_id();
|
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!(
|
info!(
|
||||||
target: "sub-libp2p",
|
target: "sub-libp2p",
|
||||||
"🏷 Local node identity is: {} (legacy representation: {})",
|
"🏷 Local node identity is: {}",
|
||||||
local_peer_id.to_base58(),
|
local_peer_id.to_base58(),
|
||||||
local_peer_id_legacy
|
|
||||||
);
|
);
|
||||||
|
|
||||||
let checker = params.on_demand.as_ref()
|
let checker = params.on_demand.as_ref()
|
||||||
|
|||||||
Reference in New Issue
Block a user