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

Function opt_force_privkey

lightningd/options.c:638–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636
637
638static char *opt_force_privkey(const char *optarg, struct lightningd *ld)
639{
640 tal_free(ld->dev_force_privkey);
641 ld->dev_force_privkey = tal(ld, struct privkey);
642 if (!hex_decode(optarg, strlen(optarg),
643 ld->dev_force_privkey, sizeof(*ld->dev_force_privkey)))
644 return tal_fmt(tmpctx, "Unable to parse privkey '%s'", optarg);
645 return NULL;
646}
647
648static char *opt_force_bip32_seed(const char *optarg, struct lightningd *ld)
649{

Callers

nothing calls this directly

Calls 2

tal_freeFunction · 0.85
hex_decodeFunction · 0.85

Tested by

no test coverage detected