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

Function subdaemon_malformed_msg

lightningd/subd.c:378–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378static void subdaemon_malformed_msg(struct subd *sd, const u8 *msg)
379{
380 log_broken(sd->log, "%i: malformed message '%.s'",
381 fromwire_peektype(msg),
382 tal_hex(msg, msg));
383
384 if (sd->ld->dev_subdaemon_fail)
385 exit(1);
386}
387
388static bool log_status_fail(struct subd *sd, const u8 *msg)
389{

Callers 1

sd_msg_readFunction · 0.85

Calls 2

fromwire_peektypeFunction · 0.85
tal_hexFunction · 0.85

Tested by

no test coverage detected