| 1719 | |
| 1720 | #if DEVELOPER |
| 1721 | static 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 | |
| 1740 | static struct command_result *json_rawrequest(struct command *cmd, |
| 1741 | const char *buffer, |
nothing calls this directly
no test coverage detected