From: Matt Corallo Date: Tue, 15 Jan 2019 01:36:45 +0000 (-0500) Subject: log_trace HTLC changes in Channel::get_update_fulfill_htlc X-Git-Tag: v0.0.12~230^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e5fa4f270abba8cd45c597b97e849113e42d9c0e;p=rust-lightning log_trace HTLC changes in Channel::get_update_fulfill_htlc --- 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())); }