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

Function connect_activate_done

lightningd/connect_control.c:799–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799static void connect_activate_done(struct subd *connectd,
800 const u8 *reply,
801 const int *fds UNUSED,
802 void *unused UNUSED)
803{
804 char *errmsg;
805 if (!fromwire_connectd_activate_reply(reply, reply, &errmsg))
806 fatal("Bad connectd_activate_reply: %s",
807 tal_hex(reply, reply));
808
809 /* connectd can fail in *informative* ways: don't use fatal() here and
810 * confuse things with a backtrace! */
811 if (errmsg) {
812 log_broken(connectd->log, "%s", errmsg);
813 exit(1);
814 }
815
816 /* Break out of loop, so we can begin */
817 log_debug(connectd->ld->log, "io_break: %s", __func__);
818 io_break(connectd);
819}
820
821void tell_connectd_scid(struct lightningd *ld,
822 struct short_channel_id scid,

Callers

nothing calls this directly

Calls 3

tal_hexFunction · 0.85
io_breakFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected