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

Function opt_force_bip32_seed

lightningd/options.c:648–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648static char *opt_force_bip32_seed(const char *optarg, struct lightningd *ld)
649{
650 tal_free(ld->dev_force_bip32_seed);
651 ld->dev_force_bip32_seed = tal(ld, struct secret);
652 if (!hex_decode(optarg, strlen(optarg),
653 ld->dev_force_bip32_seed,
654 sizeof(*ld->dev_force_bip32_seed)))
655 return tal_fmt(tmpctx, "Unable to parse secret '%s'", optarg);
656 return NULL;
657}
658
659static char *opt_force_tmp_channel_id(const char *optarg, struct lightningd *ld)
660{

Callers

nothing calls this directly

Calls 2

tal_freeFunction · 0.85
hex_decodeFunction · 0.85

Tested by

no test coverage detected