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

Function datastore_key_fmt

lightningd/datastore.c:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static char *datastore_key_fmt(const tal_t *ctx, const char **key)
112{
113 char *ret = tal_strdup(ctx, "[");
114 for (size_t i = 0; i < tal_count(key); i++)
115 tal_append_fmt(&ret, "%s%s", i ? "," : "", key[i]);
116 tal_append_fmt(&ret, "]");
117 return ret;
118}
119
120static struct command_result *json_datastore(struct command *cmd,
121 const char *buffer,

Callers 2

json_datastoreFunction · 0.85
json_listdatastoreFunction · 0.85

Calls 1

tal_append_fmtFunction · 0.85

Tested by

no test coverage detected