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

Function param_params

lightningd/runes.c:249–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249static struct command_result *param_params(struct command *cmd, const char *name,
250 const char * buffer, const jsmntok_t *tok,
251 const jsmntok_t **params)
252{
253 if (tok->type != JSMN_OBJECT && tok->type != JSMN_ARRAY) {
254 return command_fail_badparam(cmd, name, buffer, tok, "must be object or array");
255 }
256 *params = tok;
257 return NULL;
258}
259
260/* The unique id is embedded with a special restriction with an empty field name */
261static bool is_unique_id(struct rune_restr **restrs, unsigned int index)

Callers

nothing calls this directly

Calls 1

command_fail_badparamFunction · 0.50

Tested by

no test coverage detected