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

Function param_short_channel_id_dir

common/json_param.c:674–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674struct command_result *param_short_channel_id_dir(struct command *cmd,
675 const char *name,
676 const char *buffer,
677 const jsmntok_t *tok,
678 struct short_channel_id_dir **scidd)
679{
680 *scidd = tal(cmd, struct short_channel_id_dir);
681 if (!json_to_short_channel_id_dir(buffer, tok, *scidd))
682 return command_fail_badparam(cmd, name, buffer, tok,
683 "should be a short_channel_id_dir of form NxNxN/N");
684 return NULL;
685}
686
687struct command_result *param_secret(struct command *cmd, const char *name,
688 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.70

Tested by

no test coverage detected