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

Function opt_subd_dev_disconnect

lightningd/subd.c:938–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938char *opt_subd_dev_disconnect(const char *optarg, struct lightningd *ld)
939{
940 ld->dev_disconnect_fd = open(optarg, O_RDONLY);
941 if (ld->dev_disconnect_fd < 0)
942 return tal_fmt(ld, "Could not open --dev-disconnect=%s: %s",
943 optarg, strerror(errno));
944 return NULL;
945}
946
947/* If test specified that this disconnection should cause permanent failure */
948bool dev_disconnect_permanent(struct lightningd *ld)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected