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

Function json_reckless

plugins/recklessrpc.c:270–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static struct command_result *json_reckless(struct command *cmd,
271 const char *buf,
272 const jsmntok_t *params)
273{
274 const char *command;
275 const char *target;
276 const char *target2;
277 /* Allow check command to evaluate. */
278 if (!param(cmd, buf, params,
279 p_req("command", param_string, &command),
280 p_req("target/subcommand", param_string, &target),
281 p_opt("target", param_string, &target2),
282 NULL))
283 return command_param_failed();
284 return reckless_call(cmd, command, target, target2);
285}
286
287static const char *init(struct command *init_cmd,
288 const char *buf UNUSED,

Callers

nothing calls this directly

Calls 3

reckless_callFunction · 0.85
command_param_failedFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected