From: Matt Corallo Date: Tue, 25 Apr 2023 05:57:00 +0000 (+0000) Subject: Log ChannelPending events X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d78b335af89d61ff3f2811110a934b231c91fad0;p=ldk-sample Log ChannelPending events --- 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: _,