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

Function find_or_create_account

plugins/bkpr/account.c:263–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263struct account *find_or_create_account(struct command *cmd,
264 struct bkpr *bkpr,
265 const char *name)
266{
267 struct account *a = find_account(bkpr, name);
268
269 if (a)
270 return a;
271
272 a = new_account(bkpr->accounts, name);
273 account_datastore_set(cmd, a, "must-create");
274 return a;
275}
276
277static void memleak_scan_accounts_htable(struct htable *memtable,
278 struct account_htable *ht)

Callers 2

parse_and_log_chain_moveFunction · 0.70
initFunction · 0.70

Calls 3

new_accountFunction · 0.85
account_datastore_setFunction · 0.85
find_accountFunction · 0.70

Tested by

no test coverage detected