]> git.bitcoin.ninja Git - rust-lightning/commitdiff
log_trace HTLC changes in Channel::get_update_fulfill_htlc
authorMatt Corallo <git@bluematt.me>
Tue, 15 Jan 2019 01:36:45 +0000 (20:36 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 25 Jan 2019 17:04:39 +0000 (12:04 -0500)
src/ln/channel.rs

index f4e40d6523db9aa379d407bb6c2dddceeed3d2aa..abe01aa23dd772c30dd8a3271ef377e6a1d3637b 100644 (file)
@@ -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()));
                }