From b0ff4d6c2ca003289f3a74f9b2c884bb06b72a37 Mon Sep 17 00:00:00 2001 From: 0xprames <0xprames@proton.me> Date: Thu, 21 Sep 2023 19:53:05 +0530 Subject: [PATCH] (chore) Add enode address on startup --- bin/reth/src/node/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reth/src/node/mod.rs b/bin/reth/src/node/mod.rs index fffd92992840..87ecee62c982 100644 --- a/bin/reth/src/node/mod.rs +++ b/bin/reth/src/node/mod.rs @@ -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 NodeCommand { 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?;