Skip to content

Commit 67e0844

Browse files
committed
f always log when we skip fail/fulfill of an HTLC because we already did
1 parent 7b538e2 commit 67e0844

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
22592259
error_data: None,
22602260
}
22612261
)
2262+
} else {
2263+
log_trace!(self.logger, "Received duplicative fail for HTLC with payment_hash {}", log_bytes!(payment_hash.0));
22622264
}
22632265
},
22642266
};
@@ -2287,6 +2289,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
22872289
session_priv_bytes.copy_from_slice(&session_priv[..]);
22882290
!self.pending_outbound_payments.lock().unwrap().remove(&session_priv_bytes)
22892291
} {
2292+
log_trace!(self.logger, "Received duplicative fail for HTLC with payment_hash {}", log_bytes!(payment_hash.0));
22902293
return;
22912294
}
22922295
log_trace!(self.logger, "Failing outbound payment HTLC with payment_hash {}", log_bytes!(payment_hash.0));
@@ -2528,6 +2531,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
25282531
pending_events.push(events::Event::PaymentSent {
25292532
payment_preimage
25302533
});
2534+
} else {
2535+
log_trace!(self.logger, "Received duplicative fulfill for HTLC with payment_preimage {}", log_bytes!(payment_preimage.0));
25312536
}
25322537
},
25332538
HTLCSource::PreviousHopData(hop_data) => {

0 commit comments

Comments
 (0)