We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d04a130 commit 0f4a7ffCopy full SHA for 0f4a7ff
lightning/src/ln/channelmanager.rs
@@ -7689,7 +7689,7 @@ where
7689
// We shouldn't consider peer entries for any peers that either have no funded
7690
// channels or are disconnected and had some funded channel in the past (and we're
7691
// just keeping the entry around for closed_channel_monitor_update_ids).
7692
- peer.total_channel_count() > 0 || (!peer.is_connected && peer.closed_channel_monitor_update_ids.len() > 0)
+ peer.total_channel_count() > 0 || (!peer.is_connected && !peer.closed_channel_monitor_update_ids.is_empty())
7693
});
7694
let per_peer_state = self.per_peer_state.read().unwrap();
7695
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
0 commit comments