bkpr: listbalances, skip the external account

it's essentialy meaningless
This commit is contained in:
niftynei
2022-07-19 17:04:36 +09:30
committed by Rusty Russell
parent 791c1a7526
commit f767e41755

View File

@@ -207,6 +207,11 @@ static struct command_result *json_list_balances(struct command *cmd,
" for account %s: %s",
accts[i]->name, err);
/* Skip the external acct balance, it's effectively
* meaningless */
if (streq(accts[i]->name, EXTERNAL_ACCT))
continue;
/* Add it to the result data */
json_object_start(res, NULL);