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

Function peer_fatal_continue

common/peer_failed.c:15–24  ·  view source on GitHub ↗

Fatal error here, return peer control to lightningd */

Source from the content-addressed store, hash-verified

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

Callers 2

peer_failedFunction · 0.85

Calls 4

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

Tested by

no test coverage detected