| 558 | } |
| 559 | |
| 560 | struct command_result *param_channel_id(struct command *cmd, const char *name, |
| 561 | const char *buffer, const jsmntok_t *tok, |
| 562 | struct channel_id **cid) |
| 563 | { |
| 564 | *cid = tal(cmd, struct channel_id); |
| 565 | if (json_to_channel_id(buffer, tok, *cid)) |
| 566 | return NULL; |
| 567 | |
| 568 | return command_fail_badparam(cmd, name, buffer, tok, |
| 569 | "should be a channel id"); |
| 570 | } |
| 571 | |
| 572 | struct command_result *param_short_channel_id(struct command *cmd, |
| 573 | const char *name, |
nothing calls this directly
no test coverage detected