File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1585,17 +1585,12 @@ where
15851585 } => {
15861586 log_info ! ( self . logger, "Channel {} closed due to: {}" , channel_id, reason) ;
15871587
1588- // If the counterparty initiated closure of their last remaining channel
1589- // with us, remove them from the peer store so we stop trying to reconnect.
1590- //
1591- // If we initiated the closure, keep them in the peer store so the
1592- // background reconnection task fires and we can complete the
1593- // channel_reestablish recovery flow. This matters especially for LND
1594- // peers, which need us to reconnect to recover from force-closures.
1595- //
1596- // We exclude `channel_id` from the remaining-channel check because LDK
1597- // fires ChannelClosed before removing the channel from its internal list,
1598- // so list_channels_with_counterparty still includes the closing channel.
1588+ // If the counterparty initiated closure of their last remaining channel,
1589+ // remove them from the peer store so we stop reconnect attempts.
1590+
1591+ // We exclude `channel_id` from the check because LDK emits
1592+ // ChannelClosed before removing the channel from its internal list.
1593+
15991594 if let Some ( counterparty_node_id) = counterparty_node_id {
16001595 let counterparty_initiated = matches ! (
16011596 reason,
You can’t perform that action at this time.
0 commit comments