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

Function selfpay_mpp_fail

lightningd/pay.c:1768–1783  ·  view source on GitHub ↗

FIXME: Map errors better using payment_failed? */

Source from the content-addressed store, hash-verified

1766
1767/* FIXME: Map errors better using payment_failed? */
1768static void selfpay_mpp_fail(struct selfpay *selfpay, const u8 *failmsg TAKES)
1769{
1770 struct onionreply *reply = create_onionreply(tmpctx, &selfpay->shared_secret, failmsg);
1771
1772 if (taken(failmsg))
1773 tal_steal(selfpay->cmd, failmsg);
1774
1775 payment_failed(selfpay->cmd->ld,
1776 selfpay->cmd->ld->log,
1777 &selfpay->payment_hash,
1778 selfpay->partid,
1779 selfpay->groupid,
1780 reply,
1781 NULL,
1782 NULL);
1783}
1784
1785static void selfpay_mpp_succeeded(struct selfpay *selfpay,
1786 const struct preimage *preimage)

Callers

nothing calls this directly

Calls 3

create_onionreplyFunction · 0.85
takenFunction · 0.85
payment_failedFunction · 0.85

Tested by

no test coverage detected