From e5fa4f270abba8cd45c597b97e849113e42d9c0e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 14 Jan 2019 20:36:45 -0500 Subject: [PATCH] log_trace HTLC changes in Channel::get_update_fulfill_htlc --- src/ln/channel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ln/channel.rs b/src/ln/channel.rs index f4e40d652..abe01aa23 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -1225,6 +1225,7 @@ impl Channel { _ => {} } } + log_trace!(self, "Adding HTLC claim to holding_cell! Current state: {}", self.channel_state); self.holding_cell_htlc_updates.push(HTLCUpdateAwaitingACK::ClaimHTLC { payment_preimage: payment_preimage_arg, htlc_id: htlc_id_arg, }); @@ -1238,6 +1239,7 @@ impl Channel { debug_assert!(false, "Have an inbound HTLC we tried to claim before it was fully committed to"); return Ok((None, Some(self.channel_monitor.clone()))); } + log_trace!(self, "Upgrading HTLC {} to LocalRemoved with a Fulfill!", log_bytes!(htlc.payment_hash.0)); htlc.state = InboundHTLCState::LocalRemoved(InboundHTLCRemovalReason::Fulfill(payment_preimage_arg.clone())); } -- 2.39.5