MCPcopy Create free account
hub / github.com/ElementsProject/lightning / scid_option

Function scid_option

plugins/offers.c:1971–1981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969};
1970
1971static 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
1983static bool scid_jsonfmt(struct command *cmd, struct json_stream *js, const char *fieldname,
1984 struct short_channel_id **scid)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected