Skip to content

Commit 20d0cbf

Browse files
committed
f walk back useless change
1 parent ca56153 commit 20d0cbf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7685,12 +7685,7 @@ where
76857685
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
76867686

76877687
let peers_without_funded_channels =
7688-
self.peers_without_funded_channels(|peer| {
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)
7693-
});
7688+
self.peers_without_funded_channels(|peer| { peer.total_channel_count() > 0 });
76947689
let per_peer_state = self.per_peer_state.read().unwrap();
76957690
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
76967691
.ok_or_else(|| {

0 commit comments

Comments
 (0)