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

Function connect_init_done

lightningd/connect_control.c:698–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698static void connect_init_done(struct subd *connectd,
699 const u8 *reply,
700 const int *fds UNUSED,
701 void *unused UNUSED)
702{
703 struct lightningd *ld = connectd->ld;
704 char *errmsg;
705
706 if (!fromwire_connectd_init_reply(ld, reply,
707 &ld->binding,
708 &ld->announceable,
709 &errmsg))
710 fatal("Bad connectd_init_reply: %s",
711 tal_hex(reply, reply));
712
713 /* connectd can fail in *informative* ways: don't use fatal() here and
714 * confuse things with a backtrace! */
715 if (errmsg) {
716 log_broken(connectd->log, "%s", errmsg);
717 exit(1);
718 }
719
720 /* Break out of loop, so we can begin */
721 log_debug(connectd->ld->log, "io_break: %s", __func__);
722 io_break(connectd);
723}
724
725int connectd_init(struct lightningd *ld)
726{

Callers

nothing calls this directly

Calls 3

tal_hexFunction · 0.85
io_breakFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected