Log information about channel freeze/restore from monitor updates
[rust-lightning] / src / ln / channel.rs
index abe01aa23dd772c30dd8a3271ef377e6a1d3637b..beab7ffc6da7808e4caa553d4d012621a8dda8ba 100644 (file)
@@ -2373,6 +2373,8 @@ impl Channel {
                        }
                }
 
+               log_trace!(self, "Regenerated latest commitment update with {} update_adds, {} update_fulfills, {} update_fails, and {} update_fail_malformeds",
+                               update_add_htlcs.len(), update_fulfill_htlcs.len(), update_fail_htlcs.len(), update_fail_malformed_htlcs.len());
                msgs::CommitmentUpdate {
                        update_add_htlcs, update_fulfill_htlcs, update_fail_htlcs, update_fail_malformed_htlcs,
                        update_fee: None, //TODO: We need to support re-generating any update_fees in the last commitment_signed!