projects
/
ldk-sample
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d5d59a
)
Print the local Node ID on startup
author
Matt Corallo
<git@bluematt.me>
Tue, 4 May 2021 18:37:14 +0000
(18:37 +0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 4 May 2021 18:39:25 +0000
(18:39 +0000)
src/cli.rs
patch
|
blob
|
history
diff --git
a/src/cli.rs
b/src/cli.rs
index c5dda5fc33e11f19cad785bb5e042855e7babf68..32119aef9ea14baa6b68f12b527102f0bb08ea74 100644
(file)
--- 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<FilesystemLogger>,
network: Network,
) {
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
let stdin = io::stdin();
print!("> ");
io::stdout().flush().unwrap(); // Without flushing, the `>` doesn't print