Skip to content

Commit

Permalink
bkpr: listbalances, skip the external account
Browse files Browse the repository at this point in the history
it's essentialy meaningless
  • Loading branch information
niftynei authored and rustyrussell committed Jul 28, 2022
1 parent 791c1a7 commit f767e41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/bkpr/bookkeeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f767e41

Please sign in to comment.