Print the local Node ID on startup
authorMatt Corallo <git@bluematt.me>
Tue, 4 May 2021 18:37:14 +0000 (18:37 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 4 May 2021 18:39:25 +0000 (18:39 +0000)
src/cli.rs

index c5dda5fc33e11f19cad785bb5e042855e7babf68..32119aef9ea14baa6b68f12b527102f0bb08ea74 100644 (file)
@@ -103,7 +103,9 @@ pub(crate) async fn poll_for_user_input(
        event_notifier: mpsc::Sender<()>, ldk_data_dir: String, logger: Arc<FilesystemLogger>,
        network: Network,
 ) {
-       println!("LDK startup successful. To view available commands: \"help\".\nLDK logs are available at <your-supplied-ldk-data-dir-path>/.ldk/logs");
+       println!("LDK startup successful. To view available commands: \"help\".");
+       println!("LDK logs are available at <your-supplied-ldk-data-dir-path>/.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