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

Function master_badmsg

common/status.c:212–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void master_badmsg(u32 type_expected, const u8 *msg)
213{
214 if (!msg)
215 status_failed(STATUS_FAIL_MASTER_IO,
216 "failed reading msg %u: %s",
217 type_expected, strerror(errno));
218 status_failed(STATUS_FAIL_MASTER_IO,
219 "Error parsing %u: %s",
220 type_expected, tal_hex(tmpctx, msg));
221}
222
223/* Print BROKEN status: callback for dump_memleak. */
224void memleak_status_broken(void *unused, const char *fmt, ...)

Callers 15

set_custommsgsFunction · 0.50
send_custommsgFunction · 0.50
custommsg_completedFunction · 0.50
peer_connect_subdFunction · 0.50
send_manual_pingFunction · 0.50
onionmsg_reqFunction · 0.50
inject_onionmsg_reqFunction · 0.50
connect_initFunction · 0.50
connect_activateFunction · 0.50
connect_to_peerFunction · 0.50
peer_disconnectFunction · 0.50
peer_downgradeFunction · 0.50

Calls 2

tal_hexFunction · 0.85
status_failedFunction · 0.70

Tested by

no test coverage detected