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

Function selfpay_mpp_fail

lightningd/pay.c:1765–1780  ·  view source on GitHub ↗

FIXME: Map errors better using payment_failed? */

Source from the content-addressed store, hash-verified

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