| 634 | } |
| 635 | |
| 636 | struct command_result *param_node_id(struct command *cmd, const char *name, |
| 637 | const char *buffer, const jsmntok_t *tok, |
| 638 | struct node_id **id) |
| 639 | { |
| 640 | *id = tal(cmd, struct node_id); |
| 641 | if (json_to_node_id(buffer, tok, *id)) |
| 642 | return NULL; |
| 643 | |
| 644 | return command_fail_badparam(cmd, name, buffer, tok, |
| 645 | "should be a node id"); |
| 646 | } |
| 647 | |
| 648 | struct command_result *param_channel_id(struct command *cmd, const char *name, |
| 649 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected