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

Function opt_force_tmp_channel_id

lightningd/options.c:659–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659static char *opt_force_tmp_channel_id(const char *optarg, struct lightningd *ld)
660{
661 tal_free(ld->dev_force_tmp_channel_id);
662 ld->dev_force_tmp_channel_id = tal(ld, struct channel_id);
663 if (!hex_decode(optarg, strlen(optarg),
664 ld->dev_force_tmp_channel_id,
665 sizeof(*ld->dev_force_tmp_channel_id)))
666 return tal_fmt(tmpctx, "Unable to parse channel id '%s'", optarg);
667 return NULL;
668}
669
670static char *opt_force_channel_secrets(const char *optarg,
671 struct lightningd *ld)

Callers

nothing calls this directly

Calls 2

tal_freeFunction · 0.85
hex_decodeFunction · 0.85

Tested by

no test coverage detected