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

Function datastore_key_fmt

lightningd/datastore.c:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static char *datastore_key_fmt(const tal_t *ctx, const char **key)
93{
94 char *ret = tal_strdup(ctx, "[");
95 for (size_t i = 0; i < tal_count(key); i++)
96 tal_append_fmt(&ret, "%s%s", i ? "," : "", key[i]);
97 tal_append_fmt(&ret, "]");
98 return ret;
99}
100
101static struct command_result *json_datastore(struct command *cmd,
102 const char *buffer,

Callers 2

json_datastoreFunction · 0.85
json_datastoreusageFunction · 0.85

Calls 1

tal_append_fmtFunction · 0.85

Tested by

no test coverage detected