MCPcopy Create free account
hub / github.com/ElementsProject/lightning / list_accounts

Function list_accounts

plugins/bkpr/account.c:129–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129struct account **list_accounts(const tal_t *ctx, const struct bkpr *bkpr)
130{
131 struct account **results;
132 struct account_htable_iter it;
133 struct account *a;
134 size_t i;
135
136 results = tal_arr(ctx,
137 struct account *,
138 account_htable_count(bkpr->accounts->htable));
139 for (i = 0, a = account_htable_first(bkpr->accounts->htable, &it);
140 a;
141 i++, a = account_htable_next(bkpr->accounts->htable, &it)) {
142 results[i] = a;
143 }
144
145 return results;
146}
147
148static const char **ds_path(const tal_t *ctx, const char *acctname)
149{

Callers 2

do_list_balancesFunction · 0.70
compute_channel_apysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected