From d78b335af89d61ff3f2811110a934b231c91fad0 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 25 Apr 2023 05:57:00 +0000 Subject: [PATCH] Log ChannelPending events --- src/main.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cc67700..159fa5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -346,7 +346,15 @@ async fn handle_ldk_events( .unwrap(); bitcoind_client.broadcast_transaction(&spending_tx); } - Event::ChannelPending { .. } => {} + Event::ChannelPending { channel_id, counterparty_node_id, .. } => { + println!( + "\nEVENT: Channel {} with peer {} is pending awaiting funding lock-in!", + hex_utils::hex_str(&channel_id), + hex_utils::hex_str(&counterparty_node_id.serialize()), + ); + print!("> "); + io::stdout().flush().unwrap(); + } Event::ChannelReady { ref channel_id, user_channel_id: _, -- 2.39.5