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

Function failmsg_incorrect_or_unknown_

lightningd/peer_htlcs.c:204–214  ·  view source on GitHub ↗

Helper to create (common) WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS */

Source from the content-addressed store, hash-verified

202
203/* Helper to create (common) WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS */
204const u8 *failmsg_incorrect_or_unknown_(const tal_t *ctx,
205 struct lightningd *ld,
206 const struct htlc_in *hin,
207 const char *file, int line)
208{
209 log_debug(ld->log, "WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS: %s:%u",
210 file, line);
211 return towire_incorrect_or_unknown_payment_details(
212 ctx, hin->msat,
213 get_block_height(ld->topology));
214}
215
216/* localfail are for handing to the local payer if it's local. */
217static void fail_out_htlc(struct htlc_out *hout, const char *localfail)

Callers

nothing calls this directly

Tested by

no test coverage detected