| 797 | } |
| 798 | |
| 799 | static 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 | |
| 821 | void tell_connectd_scid(struct lightningd *ld, |
| 822 | struct short_channel_id scid, |