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

Function handle_extracted_preimage

lightningd/onchain_control.c:374–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374static void handle_extracted_preimage(struct channel *channel, const u8 *msg)
375{
376 struct preimage preimage;
377
378 if (!fromwire_onchaind_extracted_preimage(msg, &preimage)) {
379 channel_internal_error(channel, "Invalid extracted_preimage");
380 return;
381 }
382
383 onchain_fulfilled_htlc(channel, &preimage);
384}
385
386static void handle_missing_htlc_output(struct channel *channel, const u8 *msg)
387{

Callers 1

onchain_msgFunction · 0.85

Calls 2

onchain_fulfilled_htlcFunction · 0.85
channel_internal_errorFunction · 0.70

Tested by

no test coverage detected