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

Function handle_onionmsg_forward_fail

lightningd/connect_control.c:441–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441static 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
470static void connectd_start_shutdown_reply(struct subd *connectd,
471 const u8 *reply,

Callers 1

connectd_msgFunction · 0.85

Calls 2

tal_hexFunction · 0.85

Tested by

no test coverage detected