From 873f7cc76c1d0b3ff58f00faa8bde75738ec2c3b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 4 May 2021 18:37:14 +0000 Subject: [PATCH] Print the local Node ID on startup --- src/cli.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index c5dda5f..32119ae 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -103,7 +103,9 @@ pub(crate) async fn poll_for_user_input( event_notifier: mpsc::Sender<()>, ldk_data_dir: String, logger: Arc, network: Network, ) { - println!("LDK startup successful. To view available commands: \"help\".\nLDK logs are available at /.ldk/logs"); + println!("LDK startup successful. To view available commands: \"help\"."); + println!("LDK logs are available at /.ldk/logs"); + println!("Local Node ID is {}.", channel_manager.get_our_node_id()); let stdin = io::stdin(); print!("> "); io::stdout().flush().unwrap(); // Without flushing, the `>` doesn't print -- 2.39.5