From: Matt Corallo Date: Tue, 5 Mar 2019 20:35:40 +0000 (-0500) Subject: Add log_trace on completion of monitor update restoration in Chan X-Git-Tag: v0.0.12~212^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=63ed8fe5769a9d410a46084c438d350bf712c902;p=rust-lightning Add log_trace on completion of monitor update restoration in Chan --- 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> {