From 0d35a7111a10af070bb6f9aaf53b6a27ca38b264 Mon Sep 17 00:00:00 2001 From: Conor Scott Date: Thu, 28 Feb 2019 09:18:23 +0400 Subject: [PATCH] [rpc] don't get uncommitted channels towards num_pending --- lightningd/peer_control.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 3425468e6..5975caf00 100644 --- a/lightningd/peer_control.c +++ b/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) {