mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
[rpc] don't get uncommitted channels towards num_pending
This commit is contained in:
committed by
Christian Decker
parent
049f2351d4
commit
0d35a7111a
@@ -1291,10 +1291,6 @@ static struct command_result *json_getinfo(struct command *cmd,
|
|||||||
/* Add some peer and channel stats */
|
/* Add some peer and channel stats */
|
||||||
list_for_each(&cmd->ld->peers, peer, list) {
|
list_for_each(&cmd->ld->peers, peer, list) {
|
||||||
num_peers++;
|
num_peers++;
|
||||||
/* Count towards pending? */
|
|
||||||
if (peer->uncommitted_channel) {
|
|
||||||
pending_channels++;
|
|
||||||
}
|
|
||||||
|
|
||||||
list_for_each(&peer->channels, channel, list) {
|
list_for_each(&peer->channels, channel, list) {
|
||||||
if (channel->state == CHANNELD_AWAITING_LOCKIN) {
|
if (channel->state == CHANNELD_AWAITING_LOCKIN) {
|
||||||
|
|||||||
Reference in New Issue
Block a user