You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update monitor event id on duplicate inbound claim
The first time we claim an HTLC in a channel, we may not have an associated
monitor event id. Once we later process the monitor event for the claim, we
need to update the channel's internal htlc state to include the monitor event
id, so the event can be properly acked afer the htlc is removed.
if let &InboundHTLCRemovalReason::Fulfill { .. } = reason {
7554
7562
} else {
7555
-
log_warn!(logger, "Have preimage and want to fulfill HTLC with payment hash {} we already failed against channel {}", &htlc.payment_hash, &self.context.channel_id());
7563
+
log_warn!(logger, "Have preimage and want to fulfill HTLC with payment hash {} we already failed against channel {channel_id}", &htlc.payment_hash);
7556
7564
debug_assert!(
7557
7565
false,
7558
7566
"Tried to fulfill an HTLC that was already failed"
@@ -7593,17 +7601,24 @@ where
7593
7601
// `claim_htlc_while_disconnected_dropping_mon_update` and must match exactly -
7594
7602
// `claim_htlc_while_disconnected_dropping_mon_update` would not work correctly if we
7595
7603
// do not not get into this branch.
7596
-
for pending_update in self.context.holding_cell_htlc_updates.iter() {
7604
+
for pending_update in self.context.holding_cell_htlc_updates.iter_mut() {
0 commit comments