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

Function master_badmsg

common/status.c:226–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void master_badmsg(u32 type_expected, const u8 *msg)
227{
228 if (!msg)
229 status_failed(STATUS_FAIL_MASTER_IO,
230 "failed reading msg %u: %s",
231 type_expected, strerror(errno));
232 status_failed(STATUS_FAIL_MASTER_IO,
233 "Error parsing %u: %s",
234 type_expected, tal_hex(tmpctx, msg));
235}
236
237#if DEVELOPER
238/* Print BROKEN status: callback for dump_memleak. */

Callers 15

send_custommsgFunction · 0.50
peer_connect_subdFunction · 0.50
send_manual_pingFunction · 0.50
onionmsg_reqFunction · 0.50
connect_initFunction · 0.50
connect_activateFunction · 0.50
connect_to_peerFunction · 0.50
peer_discardFunction · 0.50
peer_final_msgFunction · 0.50
tell_master_their_offerFunction · 0.50
mainFunction · 0.50
bad_req_fmtFunction · 0.50

Calls 2

tal_hexFunction · 0.85
status_failedFunction · 0.70

Tested by

no test coverage detected