This version doesn't do sanity checks! */
| 1748 | |
| 1749 | /* This version doesn't do sanity checks! */ |
| 1750 | static struct command_result *param_raw_invreq(struct command *cmd, |
| 1751 | const char *name, |
| 1752 | const char *buffer, |
| 1753 | const jsmntok_t *tok, |
| 1754 | struct tlv_invoice_request **invreq) |
| 1755 | { |
| 1756 | const char *fail; |
| 1757 | |
| 1758 | *invreq = invrequest_decode(cmd, buffer + tok->start, tok->end - tok->start, |
| 1759 | plugin_feature_set(cmd->plugin), chainparams, |
| 1760 | &fail); |
| 1761 | if (!*invreq) |
| 1762 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1763 | tal_fmt(cmd, |
| 1764 | "Unparsable invreq: %s", |
| 1765 | fail)); |
| 1766 | return NULL; |
| 1767 | } |
| 1768 | |
| 1769 | struct command_result *json_dev_rawrequest(struct command *cmd, |
| 1770 | const char *buffer, |
nothing calls this directly
no test coverage detected