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

Function peer_failed_received_errmsg

common/peer_failed.c:97–106  ·  view source on GitHub ↗

We're failing because peer sent us an error/warning message */

Source from the content-addressed store, hash-verified

95
96/* We're failing because peer sent us an error/warning message */
97void peer_failed_received_errmsg(struct per_peer_state *pps,
98 bool disconnect,
99 const char *desc)
100{
101 u8 *msg;
102
103 msg = towire_status_peer_error(NULL, disconnect, desc, false, NULL);
104 peer_billboard(true, "Received %s", desc);
105 peer_fatal_continue(take(msg), pps);
106}
107
108void peer_failed_connection_lost(void)
109{

Callers 2

negotiation_abortedFunction · 0.50

Calls 2

peer_fatal_continueFunction · 0.85
peer_billboardFunction · 0.70

Tested by

no test coverage detected