Skip to content

Commit 63ed8fe

Browse files
committed
Add log_trace on completion of monitor update restoration in Chan
1 parent d22650c commit 63ed8fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ln/channel.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,12 @@ impl Channel {
23362336

23372337
self.monitor_pending_revoke_and_ack = false;
23382338
self.monitor_pending_commitment_signed = false;
2339-
(raa, commitment_update, self.monitor_pending_order.clone().unwrap(), forwards, failures)
2339+
let order = self.monitor_pending_order.clone().unwrap();
2340+
log_trace!(self, "Restored monitor updating resulting in {} commitment update and {} RAA, with {} first",
2341+
if commitment_update.is_some() { "a" } else { "no" },
2342+
if raa.is_some() { "an" } else { "no" },
2343+
match order { RAACommitmentOrder::CommitmentFirst => "commitment", RAACommitmentOrder::RevokeAndACKFirst => "RAA"});
2344+
(raa, commitment_update, order, forwards, failures)
23402345
}
23412346

23422347
pub fn update_fee(&mut self, fee_estimator: &FeeEstimator, msg: &msgs::UpdateFee) -> Result<(), ChannelError> {

0 commit comments

Comments
 (0)