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

Function propose_resolution

onchaind/onchaind.c:1193–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193static void propose_resolution(struct tracked_output *out,
1194 const struct bitcoin_tx *tx,
1195 unsigned int depth_required,
1196 enum tx_type tx_type)
1197{
1198 status_debug("Propose handling %s/%s by %s (%s) after %u blocks",
1199 tx_type_name(out->tx_type),
1200 output_type_name(out->output_type),
1201 tx_type_name(tx_type),
1202 tx ? type_to_string(tmpctx, struct bitcoin_tx, tx):"IGNORING",
1203 depth_required);
1204
1205 out->proposal = tal(out, struct proposed_resolution);
1206 out->proposal->tx = tal_steal(out->proposal, tx);
1207 out->proposal->depth_required = depth_required;
1208 out->proposal->tx_type = tx_type;
1209
1210 if (depth_required == 0)
1211 proposal_meets_depth(out);
1212}
1213
1214static void propose_resolution_at_block(struct tracked_output *out,
1215 const struct bitcoin_tx *tx,

Callers 7

resolve_htlc_txFunction · 0.85
steal_htlc_txFunction · 0.85
handle_preimageFunction · 0.85
our_unilateral_to_usFunction · 0.85
steal_to_them_outputFunction · 0.85
steal_htlcFunction · 0.85

Calls 4

tx_type_nameFunction · 0.85
output_type_nameFunction · 0.85
proposal_meets_depthFunction · 0.85
type_to_stringClass · 0.50

Tested by

no test coverage detected