Skip to content

Commit 2c8b257

Browse files
committed
f explain more of why no-cp-id is "closed channel"
1 parent 345e3d1 commit 2c8b257

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
@@ -8642,7 +8642,10 @@ where
86428642
if let HTLCSource::PreviousHopData(_) = htlc_source {
86438643
if let Some(payment_preimage) = preimage_opt {
86448644
Some((htlc_source, payment_preimage, htlc.amount_msat,
8645-
counterparty_opt.is_none(), // i.e. the downstream chan is closed
8645+
// Check if `counterparty_opt.is_none()` to see if the
8646+
// downstream chan is closed (because we don't have a
8647+
// channel_id -> peer map entry).
8648+
counterparty_opt.is_none(),
86468649
monitor.get_funding_txo().0.to_channel_id()))
86478650
} else { None }
86488651
} else {

0 commit comments

Comments
 (0)