Add logger for SpendableOutputDescriptor
[rust-lightning] / lightning / src / ln / channelmonitor.rs
index 8c26139c4cba1fa750c8ba07e9637fcf16becf79..c2dd9c352a32a4885d8204680a70f3819125b028 100644 (file)
@@ -2132,6 +2132,10 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
                        self.outputs_to_watch.insert(txid.clone(), output_scripts.iter().map(|o| o.script_pubkey.clone()).collect());
                }
 
+               for spend in spendable_outputs.iter() {
+                       log_trace!(self, "Announcing spendable output to user: {}", log_spendable!(spend));
+               }
+
                if spendable_outputs.len() > 0 {
                        self.pending_events.push(events::Event::SpendableOutputs {
                                outputs: spendable_outputs,