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

Function handle_connect_failed

lightningd/connect_control.c:310–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310static void handle_connect_failed(struct lightningd *ld, const u8 *msg)
311{
312 struct node_id id;
313 enum jsonrpc_errcode errcode;
314 char *errmsg;
315 char *connect_reason;
316 u64 nsec;
317 bool connect_attempted;
318
319 if (!fromwire_connectd_connect_failed(tmpctx, msg, &id,
320 &connect_reason,
321 &nsec,
322 &errcode, &errmsg,
323 &connect_attempted))
324 fatal("Connect gave bad CONNECTD_CONNECT_FAILED message %s",
325 tal_hex(msg, msg));
326
327 connect_failed(ld, &id, NULL, connect_reason, nsec, errcode, errmsg,
328 connect_attempted);
329}
330
331const char *connect_any_cmd_id(const tal_t *ctx,
332 struct lightningd *ld, const struct peer *peer)

Callers 1

connectd_msgFunction · 0.85

Calls 3

tal_hexFunction · 0.85
fatalFunction · 0.70
connect_failedFunction · 0.70

Tested by

no test coverage detected