| 400 | } |
| 401 | |
| 402 | struct command_result *param_millionths(struct command *cmd, const char *name, |
| 403 | const char *buffer, |
| 404 | const jsmntok_t *tok, uint64_t **num) |
| 405 | { |
| 406 | *num = tal(cmd, uint64_t); |
| 407 | if (json_to_millionths(buffer, tok, *num)) |
| 408 | return NULL; |
| 409 | |
| 410 | return command_fail_badparam(cmd, name, buffer, tok, |
| 411 | "should be a non-negative floating-point number"); |
| 412 | } |
| 413 | |
| 414 | struct command_result *param_escaped_string(struct command *cmd, |
| 415 | const char *name, |
nothing calls this directly
no test coverage detected