Skip to content

Commit 2a19051

Browse files
committed
Add log_trace on completion of monitor update restoration in Chan
1 parent 5a12e56 commit 2a19051

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
@@ -2334,7 +2334,12 @@ impl Channel {
23342334

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

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

0 commit comments

Comments
 (0)