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

Function param_dev_scidd

plugins/fetchinvoice.c:839–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839static struct command_result *param_dev_scidd(struct command *cmd, const char *name,
840 const char *buffer, const jsmntok_t *tok,
841 struct short_channel_id_dir **scidd)
842{
843 if (!plugin_developer_mode(cmd->plugin))
844 return command_fail_badparam(cmd, name, buffer, tok,
845 "not available outside --developer mode");
846
847 *scidd = tal(cmd, struct short_channel_id_dir);
848 if (short_channel_id_dir_from_str(buffer + tok->start, tok->end - tok->start, *scidd))
849 return NULL;
850
851 return command_fail_badparam(cmd, name, buffer, tok,
852 "should be a short_channel_id of form NxNxN/dir");
853}
854
855static struct command_result *param_dev_reply_path(struct command *cmd, const char *name,
856 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