| 546 | } |
| 547 | |
| 548 | struct command_result *param_node_id(struct command *cmd, const char *name, |
| 549 | const char *buffer, const jsmntok_t *tok, |
| 550 | struct node_id **id) |
| 551 | { |
| 552 | *id = tal(cmd, struct node_id); |
| 553 | if (json_to_node_id(buffer, tok, *id)) |
| 554 | return NULL; |
| 555 | |
| 556 | return command_fail_badparam(cmd, name, buffer, tok, |
| 557 | "should be a node id"); |
| 558 | } |
| 559 | |
| 560 | struct command_result *param_channel_id(struct command *cmd, const char *name, |
| 561 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected