| 1969 | }; |
| 1970 | |
| 1971 | static char *scid_option(struct command *cmd, const char *arg, bool check_only, |
| 1972 | struct short_channel_id **scidp) |
| 1973 | { |
| 1974 | struct short_channel_id scid; |
| 1975 | |
| 1976 | if (!short_channel_id_from_str(arg, strlen(arg), &scid)) |
| 1977 | return tal_fmt(tmpctx, "'%s' is not an scid", arg); |
| 1978 | |
| 1979 | *scidp = notleak(tal_dup(cmd->plugin, struct short_channel_id, &scid)); |
| 1980 | return NULL; |
| 1981 | } |
| 1982 | |
| 1983 | static bool scid_jsonfmt(struct command *cmd, struct json_stream *js, const char *fieldname, |
| 1984 | struct short_channel_id **scid) |
nothing calls this directly
no test coverage detected