| 425 | } |
| 426 | |
| 427 | struct command_result *param_millionths(struct command *cmd, const char *name, |
| 428 | const char *buffer, |
| 429 | const jsmntok_t *tok, uint64_t **num) |
| 430 | { |
| 431 | *num = tal(cmd, uint64_t); |
| 432 | if (json_to_millionths(buffer, tok, *num)) |
| 433 | return NULL; |
| 434 | |
| 435 | return command_fail_badparam(cmd, name, buffer, tok, |
| 436 | "should be a non-negative floating-point number"); |
| 437 | } |
| 438 | |
| 439 | struct command_result *param_escaped_string(struct command *cmd, |
| 440 | const char *name, |
nothing calls this directly
no test coverage detected