| 837 | } |
| 838 | |
| 839 | static struct command_result *param_dev_scidd(struct command *cmd, const char *name, |
| 840 | const char *buffer, const jsmntok_t *tok, |
| 841 | struct short_channel_id_dir **scidd) |
| 842 | { |
| 843 | if (!plugin_developer_mode(cmd->plugin)) |
| 844 | return command_fail_badparam(cmd, name, buffer, tok, |
| 845 | "not available outside --developer mode"); |
| 846 | |
| 847 | *scidd = tal(cmd, struct short_channel_id_dir); |
| 848 | if (short_channel_id_dir_from_str(buffer + tok->start, tok->end - tok->start, *scidd)) |
| 849 | return NULL; |
| 850 | |
| 851 | return command_fail_badparam(cmd, name, buffer, tok, |
| 852 | "should be a short_channel_id of form NxNxN/dir"); |
| 853 | } |
| 854 | |
| 855 | static struct command_result *param_dev_reply_path(struct command *cmd, const char *name, |
| 856 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected