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

Function param_invreq

plugins/fetchinvoice.c:1721–1738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1719
1720#if DEVELOPER
1721static struct command_result *param_invreq(struct command *cmd,
1722 const char *name,
1723 const char *buffer,
1724 const jsmntok_t *tok,
1725 struct tlv_invoice_request **invreq)
1726{
1727 char *fail;
1728
1729 *invreq = invrequest_decode(cmd, buffer + tok->start, tok->end - tok->start,
1730 plugin_feature_set(cmd->plugin), chainparams,
1731 &fail);
1732 if (!*invreq)
1733 return command_fail_badparam(cmd, name, buffer, tok,
1734 tal_fmt(cmd,
1735 "Unparsable invreq: %s",
1736 fail));
1737 return NULL;
1738}
1739
1740static struct command_result *json_rawrequest(struct command *cmd,
1741 const char *buffer,

Callers

nothing calls this directly

Calls 3

invrequest_decodeFunction · 0.85
plugin_feature_setFunction · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected