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

Function param_short_channel_id

common/json_param.c:572–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572struct command_result *param_short_channel_id(struct command *cmd,
573 const char *name,
574 const char *buffer,
575 const jsmntok_t *tok,
576 struct short_channel_id **scid)
577{
578 *scid = tal(cmd, struct short_channel_id);
579 if (json_to_short_channel_id(buffer, tok, *scid))
580 return NULL;
581
582 return command_fail_badparam(cmd, name, buffer, tok,
583 "should be a short_channel_id of form NxNxN");
584}
585
586struct command_result *param_secret(struct command *cmd, const char *name,
587 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_to_short_channel_idFunction · 0.70

Tested by

no test coverage detected