Skip to content

Commit 6c6e9a7

Browse files
committed
trim duplicate comments in ChannelClosed
1 parent 7609c26 commit 6c6e9a7

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

src/event.rs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)