Skip to content

Commit 1c1f780

Browse files
committed
f explain more of why no-cp-id is "closed channel"
1 parent cd73972 commit 1c1f780

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8637,7 +8637,10 @@ where
86378637
if let HTLCSource::PreviousHopData(_) = htlc_source {
86388638
if let Some(payment_preimage) = preimage_opt {
86398639
Some((htlc_source, payment_preimage, htlc.amount_msat,
8640-
counterparty_opt.is_none(), // i.e. the downstream chan is closed
8640+
// Check if `counterparty_opt.is_none()` to see if the
8641+
// downstream chan is closed (because we don't have a
8642+
// channel_id -> peer map entry).
8643+
counterparty_opt.is_none(),
86418644
monitor.get_funding_txo().0.to_channel_id()))
86428645
} else { None }
86438646
} else {

0 commit comments

Comments
 (0)