Skip to content

Commit 69c08a7

Browse files
committed
f add an extra line
1 parent b161d40 commit 69c08a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6348,8 +6348,9 @@ where
63486348
peer_state.latest_features = init_msg.features.clone();
63496349

63506350
let best_block_height = self.best_block.read().unwrap().height();
6351-
if Self::unfunded_channel_count(&*peer_state, best_block_height) ==
6352-
peer_state.channel_by_id.len() && inbound_peer_limited
6351+
if inbound_peer_limited &&
6352+
Self::unfunded_channel_count(&*peer_state, best_block_height) ==
6353+
peer_state.channel_by_id.len()
63536354
{
63546355
return Err(());
63556356
}

0 commit comments

Comments
 (0)