Skip to content

Commit e5fa4f2

Browse files
committed
log_trace HTLC changes in Channel::get_update_fulfill_htlc
1 parent f0bcb7d commit e5fa4f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ln/channel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,7 @@ impl Channel {
12251225
_ => {}
12261226
}
12271227
}
1228+
log_trace!(self, "Adding HTLC claim to holding_cell! Current state: {}", self.channel_state);
12281229
self.holding_cell_htlc_updates.push(HTLCUpdateAwaitingACK::ClaimHTLC {
12291230
payment_preimage: payment_preimage_arg, htlc_id: htlc_id_arg,
12301231
});
@@ -1238,6 +1239,7 @@ impl Channel {
12381239
debug_assert!(false, "Have an inbound HTLC we tried to claim before it was fully committed to");
12391240
return Ok((None, Some(self.channel_monitor.clone())));
12401241
}
1242+
log_trace!(self, "Upgrading HTLC {} to LocalRemoved with a Fulfill!", log_bytes!(htlc.payment_hash.0));
12411243
htlc.state = InboundHTLCState::LocalRemoved(InboundHTLCRemovalReason::Fulfill(payment_preimage_arg.clone()));
12421244
}
12431245

0 commit comments

Comments
 (0)