| 414 | } |
| 415 | |
| 416 | struct command_result *param_bool(struct command *cmd, const char *name, |
| 417 | const char *buffer, const jsmntok_t *tok, |
| 418 | bool **b) |
| 419 | { |
| 420 | *b = tal(cmd, bool); |
| 421 | if (json_to_bool(buffer, tok, *b)) |
| 422 | return NULL; |
| 423 | return command_fail_badparam(cmd, name, buffer, tok, |
| 424 | "should be 'true' or 'false'"); |
| 425 | } |
| 426 | |
| 427 | struct command_result *param_millionths(struct command *cmd, const char *name, |
| 428 | const char *buffer, |
nothing calls this directly
no test coverage detected