| 439 | } |
| 440 | |
| 441 | static void handle_onionmsg_forward_fail(struct lightningd *ld, const u8 *msg) |
| 442 | { |
| 443 | struct node_id source; |
| 444 | u8 *incoming; |
| 445 | struct pubkey path_key; |
| 446 | u8 *outgoing; |
| 447 | struct sciddir_or_pubkey *next; |
| 448 | |
| 449 | if (!fromwire_connectd_onionmsg_forward_fail(tmpctx, msg, |
| 450 | &source, |
| 451 | &incoming, |
| 452 | &path_key, |
| 453 | &outgoing, |
| 454 | &next)) { |
| 455 | log_broken(ld->log, "Malformed onionmsg_forward_fail: %s", |
| 456 | tal_hex(tmpctx, msg)); |
| 457 | return; |
| 458 | } |
| 459 | |
| 460 | if (tal_count(outgoing) && !next) { |
| 461 | log_broken(ld->log, "onionmsg_forward_fail missing next: %s", |
| 462 | tal_hex(tmpctx, msg)); |
| 463 | return; |
| 464 | } |
| 465 | |
| 466 | notify_onionmessage_forward_fail(ld, &source, incoming, |
| 467 | &path_key, outgoing, next); |
| 468 | } |
| 469 | |
| 470 | static void connectd_start_shutdown_reply(struct subd *connectd, |
| 471 | const u8 *reply, |
no test coverage detected