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

Function failmsg_incorrect_or_unknown

lightningd/peer_htlcs.c:286–293  ·  view source on GitHub ↗

Helper to create (common) WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS */

Source from the content-addressed store, hash-verified

284
285/* Helper to create (common) WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS */
286const u8 *failmsg_incorrect_or_unknown(const tal_t *ctx,
287 struct lightningd *ld,
288 struct amount_msat msat)
289{
290 return towire_incorrect_or_unknown_payment_details(
291 ctx, msat,
292 get_block_height(ld->topology));
293}
294
295/* localfail are for handing to the local payer if it's local. */
296static void fail_out_htlc(struct htlc_out *hout, const char *localfail)

Callers 2

handle_localpayFunction · 0.85
htlc_set_add_Function · 0.85

Calls 1

get_block_heightFunction · 0.70

Tested by

no test coverage detected