(chore) Add enode address on startup (#4712)

This commit is contained in:
prames
2023-09-21 20:08:28 +05:30
committed by GitHub
parent 6a601755c9
commit 9c51a0ae4c

View File

@ -49,7 +49,7 @@ use reth_interfaces::{
RethResult,
};
use reth_network::{error::NetworkError, NetworkConfig, NetworkHandle, NetworkManager};
use reth_network_api::NetworkInfo;
use reth_network_api::{NetworkInfo, PeersInfo};
use reth_primitives::{
constants::eip4844::{LoadKzgSettingsError, MAINNET_KZG_TRUSTED_SETUP},
kzg::KzgSettings,
@ -350,7 +350,7 @@ impl<Ext: RethCliExt> NodeCommand<Ext> {
default_peers_path,
)
.await?;
info!(target: "reth::cli", peer_id = %network.peer_id(), local_addr = %network.local_addr(), "Connected to P2P network");
info!(target: "reth::cli", peer_id = %network.peer_id(), local_addr = %network.local_addr(), enode = %network.local_node_record(), "Connected to P2P network");
debug!(target: "reth::cli", peer_id = ?network.peer_id(), "Full peer ID");
let network_client = network.fetch_client().await?;