Skip to content

Commit 563f38d

Browse files
committed
f creatively aweful variable names
1 parent d46d4ed commit 563f38d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4344,15 +4344,15 @@ where
43444344
// Get the number of peers with channels, but without funded ones. We don't care too much
43454345
// about peers that never open a channel, so we filter by peers that have at least one
43464346
// channel, and then limit the number of those with unfunded channels.
4347-
let peers_without_funded_channels = self.peers_without_funded_channels(|node| !node.channel_by_id.is_empty());
4347+
let channeled_peers_without_funding = self.peers_without_funded_channels(|node| !node.channel_by_id.is_empty());
43484348
let mut peer_state_lock = peer_state_mutex_opt.unwrap().lock().unwrap();
43494349
let peer_state = &mut *peer_state_lock;
43504350

43514351
// If this peer already has some channels, a new channel won't increase our number of peers
43524352
// with unfunded channels, so as long as we aren't over the maximum number of unfunded
43534353
// channels per-peer we can accept channels from a peer with existing ones.
43544354
if peer_state.channel_by_id.is_empty() &&
4355-
peers_without_funded_channels >= MAX_UNFUNDED_CHANNEL_PEERS &&
4355+
channeled_peers_without_funding >= MAX_UNFUNDED_CHANNEL_PEERS &&
43564356
!self.default_configuration.manually_accept_inbound_channels
43574357
{
43584358
return Err(MsgHandleErrInternal::send_err_msg_no_close(

0 commit comments

Comments
 (0)