Browse Source

[rpc] don't get uncommitted channels towards num_pending

issue-2504
Conor Scott 6 years ago
committed by Christian Decker
parent
commit
0d35a7111a
  1. 4
      lightningd/peer_control.c

4
lightningd/peer_control.c

@ -1291,10 +1291,6 @@ static struct command_result *json_getinfo(struct command *cmd,
/* Add some peer and channel stats */
list_for_each(&cmd->ld->peers, peer, list) {
num_peers++;
/* Count towards pending? */
if (peer->uncommitted_channel) {
pending_channels++;
}
list_for_each(&peer->channels, channel, list) {
if (channel->state == CHANNELD_AWAITING_LOCKIN) {

Loading…
Cancel
Save