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

Function subdaemon_malformed_msg

lightningd/subd.c:372–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372static void subdaemon_malformed_msg(struct subd *sd, const u8 *msg)
373{
374 log_broken(sd->log, "%i: malformed message '%.s'",
375 fromwire_peektype(msg),
376 tal_hex(msg, msg));
377
378#if DEVELOPER
379 if (sd->ld->dev_subdaemon_fail)
380 exit(1);
381#endif
382}
383
384static bool log_status_fail(struct subd *sd, const u8 *msg)
385{

Callers 1

sd_msg_readFunction · 0.85

Calls 2

tal_hexFunction · 0.85
fromwire_peektypeFunction · 0.50

Tested by

no test coverage detected