mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
bkpr: listbalances, skip the external account
it's essentialy meaningless
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user