File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4344,15 +4344,15 @@ where
4344
4344
// Get the number of peers with channels, but without funded ones. We don't care too much
4345
4345
// about peers that never open a channel, so we filter by peers that have at least one
4346
4346
// 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 ( ) ) ;
4348
4348
let mut peer_state_lock = peer_state_mutex_opt. unwrap ( ) . lock ( ) . unwrap ( ) ;
4349
4349
let peer_state = & mut * peer_state_lock;
4350
4350
4351
4351
// If this peer already has some channels, a new channel won't increase our number of peers
4352
4352
// with unfunded channels, so as long as we aren't over the maximum number of unfunded
4353
4353
// channels per-peer we can accept channels from a peer with existing ones.
4354
4354
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 &&
4356
4356
!self . default_configuration . manually_accept_inbound_channels
4357
4357
{
4358
4358
return Err ( MsgHandleErrInternal :: send_err_msg_no_close (
You can’t perform that action at this time.
0 commit comments