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

Function handshake_failed_

connectd/handshake.c:342–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342static struct io_plan *handshake_failed_(struct io_conn *conn,
343 struct handshake *h,
344 const char *function, int line)
345{
346 status_debug("%s: handshake failed %s:%u",
347 h->side == RESPONDER ? "Responder" : "Initiator",
348 function, line);
349 errno = EPROTO;
350 return io_close(conn);
351}
352#define handshake_failed(conn, h) \
353 handshake_failed_((conn), (h), __func__, __LINE__)
354

Callers

nothing calls this directly

Calls 1

io_closeFunction · 0.85

Tested by

no test coverage detected