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

Function param_channel_id

common/json_param.c:560–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560struct command_result *param_channel_id(struct command *cmd, const char *name,
561 const char *buffer, const jsmntok_t *tok,
562 struct channel_id **cid)
563{
564 *cid = tal(cmd, struct channel_id);
565 if (json_to_channel_id(buffer, tok, *cid))
566 return NULL;
567
568 return command_fail_badparam(cmd, name, buffer, tok,
569 "should be a channel id");
570}
571
572struct command_result *param_short_channel_id(struct command *cmd,
573 const char *name,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_to_channel_idFunction · 0.70

Tested by

no test coverage detected