| 400 | struct custommsg_payload *); |
| 401 | |
| 402 | static void handle_custommsg_in(struct lightningd *ld, const u8 *msg) |
| 403 | { |
| 404 | struct custommsg_payload *p = tal(NULL, struct custommsg_payload); |
| 405 | |
| 406 | p->ld = ld; |
| 407 | if (!fromwire_connectd_custommsg_in(p, msg, &p->peer_id, &p->msg)) { |
| 408 | log_broken(ld->log, "Malformed custommsg: %s", |
| 409 | tal_hex(tmpctx, msg)); |
| 410 | tal_free(p); |
| 411 | return; |
| 412 | } |
| 413 | |
| 414 | notify_custommsg(ld, &p->peer_id, p->msg); |
| 415 | plugin_hook_call_custommsg(ld, fromwire_peektype(p->msg), NULL, p); |
| 416 | } |
| 417 | |
| 418 | static void handle_onionmsg_forward_fail(struct lightningd *ld, const u8 *msg) |
| 419 | { |
no test coverage detected