| 1035 | } |
| 1036 | |
| 1037 | struct command_result *param_lease_hex(struct command *cmd, |
| 1038 | const char *name, |
| 1039 | const char *buffer, |
| 1040 | const jsmntok_t *tok, |
| 1041 | struct lease_rates **rates) |
| 1042 | { |
| 1043 | *rates = lease_rates_fromhex(cmd, buffer + tok->start, |
| 1044 | tok->end - tok->start); |
| 1045 | if (!*rates) |
| 1046 | return command_fail(cmd, JSONRPC2_INVALID_PARAMS, |
| 1047 | "Could not decode '%s' %.*s", |
| 1048 | name, json_tok_full_len(tok), |
| 1049 | json_tok_full(buffer, tok)); |
| 1050 | return NULL; |
| 1051 | } |
| 1052 | |
| 1053 | struct command_result *param_pubkey(struct command *cmd, const char *name, |
| 1054 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected