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

Function peer_fatal_continue

common/peer_failed.c:14–23  ·  view source on GitHub ↗

Fatal error here, return peer control to lightningd */

Source from the content-addressed store, hash-verified

12
13/* Fatal error here, return peer control to lightningd */
14static void NORETURN
15peer_fatal_continue(const u8 *msg TAKES, const struct per_peer_state *pps)
16{
17 int reason = fromwire_peektype(msg);
18 breakpoint();
19 status_send(msg);
20
21 status_send_fd(pps->peer_fd);
22 exit(0x80 | (reason & 0xFF));
23}
24
25/* We only support one channel per peer anyway */
26static void NORETURN

Callers 2

peer_failedFunction · 0.85

Calls 4

breakpointFunction · 0.85
status_sendFunction · 0.85
status_send_fdFunction · 0.85
fromwire_peektypeFunction · 0.50

Tested by

no test coverage detected