| 423 | struct custommsg_payload *); |
| 424 | |
| 425 | static void handle_custommsg_in(struct lightningd *ld, const u8 *msg) |
| 426 | { |
| 427 | struct custommsg_payload *p = tal(NULL, struct custommsg_payload); |
| 428 | |
| 429 | p->ld = ld; |
| 430 | if (!fromwire_connectd_custommsg_in(p, msg, &p->peer_id, &p->msg)) { |
| 431 | log_broken(ld->log, "Malformed custommsg: %s", |
| 432 | tal_hex(tmpctx, msg)); |
| 433 | tal_free(p); |
| 434 | return; |
| 435 | } |
| 436 | |
| 437 | notify_custommsg(ld, &p->peer_id, p->msg); |
| 438 | plugin_hook_call_custommsg(ld, fromwire_peektype(p->msg), NULL, p); |
| 439 | } |
| 440 | |
| 441 | static void handle_onionmsg_forward_fail(struct lightningd *ld, const u8 *msg) |
| 442 | { |
no test coverage detected