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

Function handle_connect_failed

lightningd/connect_control.c:390–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390static void handle_connect_failed(struct lightningd *ld, const u8 *msg)
391{
392 struct node_id id;
393 enum jsonrpc_errcode errcode;
394 char *errmsg;
395 struct wireaddr_internal *addrhint;
396
397 if (!fromwire_connectd_connect_failed(tmpctx, msg, &id, &errcode, &errmsg,
398 &addrhint))
399 fatal("Connect gave bad CONNECTD_CONNECT_FAILED message %s",
400 tal_hex(msg, msg));
401
402 connect_failed(ld, &id, errcode, errmsg, addrhint);
403}
404
405const char *connect_any_cmd_id(const tal_t *ctx,
406 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