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

Function param_dev_scidd

plugins/fetchinvoice.c:798–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796}
797
798static struct command_result *param_dev_scidd(struct command *cmd, const char *name,
799 const char *buffer, const jsmntok_t *tok,
800 struct short_channel_id_dir **scidd)
801{
802 if (!plugin_developer_mode(cmd->plugin))
803 return command_fail_badparam(cmd, name, buffer, tok,
804 "not available outside --developer mode");
805
806 *scidd = tal(cmd, struct short_channel_id_dir);
807 if (short_channel_id_dir_from_str(buffer + tok->start, tok->end - tok->start, *scidd))
808 return NULL;
809
810 return command_fail_badparam(cmd, name, buffer, tok,
811 "should be a short_channel_id of form NxNxN/dir");
812}
813
814static struct command_result *param_dev_reply_path(struct command *cmd, const char *name,
815 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 3

plugin_developer_modeFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected