From 63ed8fe5769a9d410a46084c438d350bf712c902 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 5 Mar 2019 15:35:40 -0500 Subject: [PATCH] Add log_trace on completion of monitor update restoration in Chan --- src/ln/channel.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ln/channel.rs b/src/ln/channel.rs index b67468b38..b5a2f5ec2 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -2336,7 +2336,12 @@ impl Channel { self.monitor_pending_revoke_and_ack = false; self.monitor_pending_commitment_signed = false; - (raa, commitment_update, self.monitor_pending_order.clone().unwrap(), forwards, failures) + let order = self.monitor_pending_order.clone().unwrap(); + log_trace!(self, "Restored monitor updating resulting in {} commitment update and {} RAA, with {} first", + if commitment_update.is_some() { "a" } else { "no" }, + if raa.is_some() { "an" } else { "no" }, + match order { RAACommitmentOrder::CommitmentFirst => "commitment", RAACommitmentOrder::RevokeAndACKFirst => "RAA"}); + (raa, commitment_update, order, forwards, failures) } pub fn update_fee(&mut self, fee_estimator: &FeeEstimator, msg: &msgs::UpdateFee) -> Result<(), ChannelError> { -- 2.39.5