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

Function param_channel_id

common/json_param.c:648–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648struct command_result *param_channel_id(struct command *cmd, const char *name,
649 const char *buffer, const jsmntok_t *tok,
650 struct channel_id **cid)
651{
652 *cid = tal(cmd, struct channel_id);
653 if (json_to_channel_id(buffer, tok, *cid))
654 return NULL;
655
656 return command_fail_badparam(cmd, name, buffer, tok,
657 "should be a channel id");
658}
659
660struct command_result *param_short_channel_id(struct command *cmd,
661 const char *name,

Callers 1

param_channel_for_spliceFunction · 0.85

Calls 2

json_to_channel_idFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected