From: Matt Corallo Date: Tue, 4 May 2021 18:37:14 +0000 (+0000) Subject: Print the local Node ID on startup X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=873f7cc76c1d0b3ff58f00faa8bde75738ec2c3b;p=ldk-sample Print the local Node ID on startup --- 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