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

Function propose_ignore

onchaind/onchaind.c:690–712  ·  view source on GitHub ↗

If UTXO reaches this block, ignore it (it's not for us, it's ok!) */

Source from the content-addressed store, hash-verified

688
689/* If UTXO reaches this block, ignore it (it's not for us, it's ok!) */
690static void propose_ignore(struct tracked_output *out,
691 unsigned int block_required,
692 enum tx_type tx_type)
693{
694 status_debug("Propose ignoring %s/%s as %s"
695 " after block %u (%i more blocks)",
696 tx_type_name(out->tx_type),
697 output_type_name(out->output_type),
698 tx_type_name(tx_type),
699 block_required,
700 block_required - out->tx_blockheight);
701
702 /* If it's already passed, don't underflow. */
703 if (block_required < out->tx_blockheight)
704 block_required = out->tx_blockheight;
705
706 out->proposal = new_proposed_resolution(out, block_required, tx_type);
707 out->proposal->welements = NULL;
708
709 /* Can we immediately ignore? */
710 if (out->proposal->depth_required == 0)
711 ignore_output(out);
712}
713
714/* Do any of these tx_parts spend this outpoint? If so, return it */
715static const struct wally_tx_input *

Callers 1

resolve_their_htlcFunction · 0.85

Calls 4

tx_type_nameFunction · 0.85
output_type_nameFunction · 0.85
new_proposed_resolutionFunction · 0.85
ignore_outputFunction · 0.85

Tested by

no test coverage detected