| 796 | } |
| 797 | |
| 798 | static struct command_result *param_dev_scidd(struct command *cmd, const char *name, |
| 799 | const char *buffer, const jsmntok_t *tok, |
| 800 | struct short_channel_id_dir **scidd) |
| 801 | { |
| 802 | if (!plugin_developer_mode(cmd->plugin)) |
| 803 | return command_fail_badparam(cmd, name, buffer, tok, |
| 804 | "not available outside --developer mode"); |
| 805 | |
| 806 | *scidd = tal(cmd, struct short_channel_id_dir); |
| 807 | if (short_channel_id_dir_from_str(buffer + tok->start, tok->end - tok->start, *scidd)) |
| 808 | return NULL; |
| 809 | |
| 810 | return command_fail_badparam(cmd, name, buffer, tok, |
| 811 | "should be a short_channel_id of form NxNxN/dir"); |
| 812 | } |
| 813 | |
| 814 | static struct command_result *param_dev_reply_path(struct command *cmd, const char *name, |
| 815 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected