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

Function account_datastore_set

plugins/bkpr/account.c:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static void account_datastore_set(struct command *cmd,
154 const struct account *acct,
155 const char *mode)
156{
157 const char **path = ds_path(tmpctx, acct->name);
158 u8 *data = tal_arr(tmpctx, u8, 0);
159
160 towire_account(&data, acct);
161 jsonrpc_set_datastore_binary(cmd, path, data, tal_bytelen(data), mode,
162 ignore_datastore_reply, NULL, NULL);
163}
164
165void maybe_update_account(struct command *cmd,
166 struct account *acct,

Callers 11

maybe_update_accountFunction · 0.85
find_or_create_accountFunction · 0.85
test_channel_rebalancesFunction · 0.85
test_channel_event_crudFunction · 0.85
test_chain_event_crudFunction · 0.85
test_account_balancesFunction · 0.85
test_account_crudFunction · 0.85

Calls 3

ds_pathFunction · 0.85
towire_accountFunction · 0.85
tal_bytelenFunction · 0.85

Tested by 8

test_channel_rebalancesFunction · 0.68
test_channel_event_crudFunction · 0.68
test_chain_event_crudFunction · 0.68
test_account_balancesFunction · 0.68
test_account_crudFunction · 0.68