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

Function handle_spend_created

onchaind/onchaind.c:625–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625static void handle_spend_created(struct tracked_output *out, const u8 *msg)
626{
627 struct onchain_witness_element **witness;
628 bool worthwhile;
629
630 if (!fromwire_onchaind_spend_created(tmpctx, msg, &worthwhile, &witness))
631 master_badmsg(WIRE_ONCHAIND_SPEND_CREATED, msg);
632
633 out->proposal->welements
634 = cast_const2(const struct onchain_witness_element **,
635 tal_steal(out->proposal, witness));
636
637 /* Did it decide it's not worth it? Don't wait for it. */
638 if (!worthwhile)
639 ignore_output(out);
640}
641
642static struct proposed_resolution *new_proposed_resolution(struct tracked_output *out,
643 unsigned int block_required,

Callers 1

Calls 3

ignore_outputFunction · 0.85
master_badmsgFunction · 0.50

Tested by

no test coverage detected