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

Function param_short_channel_id

common/json_param.c:660–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660struct command_result *param_short_channel_id(struct command *cmd,
661 const char *name,
662 const char *buffer,
663 const jsmntok_t *tok,
664 struct short_channel_id **scid)
665{
666 *scid = tal(cmd, struct short_channel_id);
667 if (json_to_short_channel_id(buffer, tok, *scid))
668 return NULL;
669
670 return command_fail_badparam(cmd, name, buffer, tok,
671 "should be a short_channel_id of form NxNxN");
672}
673
674struct command_result *param_short_channel_id_dir(struct command *cmd,
675 const char *name,

Callers 1

param_chanhintsFunction · 0.85

Calls 2

json_to_short_channel_idFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected