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

Function failmsg_incorrect_or_unknown

lightningd/peer_htlcs.c:330–337  ·  view source on GitHub ↗

Helper to create (common) WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS */

Source from the content-addressed store, hash-verified

328
329/* Helper to create (common) WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS */
330const u8 *failmsg_incorrect_or_unknown(const tal_t *ctx,
331 struct lightningd *ld,
332 struct amount_msat msat)
333{
334 return towire_incorrect_or_unknown_payment_details(
335 ctx, msat,
336 get_block_height(ld->topology));
337}
338
339/* localfail are for handing to the local payer if it's local. */
340static 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