| 1153 | } |
| 1154 | |
| 1155 | struct command_result *param_lease_hex(struct command *cmd, |
| 1156 | const char *name, |
| 1157 | const char *buffer, |
| 1158 | const jsmntok_t *tok, |
| 1159 | struct lease_rates **rates) |
| 1160 | { |
| 1161 | *rates = lease_rates_fromhex(cmd, buffer + tok->start, |
| 1162 | tok->end - tok->start); |
| 1163 | if (!*rates) |
| 1164 | return command_fail(cmd, JSONRPC2_INVALID_PARAMS, |
| 1165 | "Could not decode '%s' %.*s", |
| 1166 | name, json_tok_full_len(tok), |
| 1167 | json_tok_full(buffer, tok)); |
| 1168 | return NULL; |
| 1169 | } |
| 1170 | |
| 1171 | struct command_result *param_pubkey(struct command *cmd, const char *name, |
| 1172 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected