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

Function resolved_by_other

onchaind/onchaind.c:1309–1323  ·  view source on GitHub ↗

Otherwise, we figure out what happened and then call this. */

Source from the content-addressed store, hash-verified

1307
1308/* Otherwise, we figure out what happened and then call this. */
1309static void resolved_by_other(struct tracked_output *out,
1310 const struct bitcoin_txid *txid,
1311 enum tx_type tx_type)
1312{
1313 out->resolved = tal(out, struct resolution);
1314 out->resolved->txid = *txid;
1315 out->resolved->depth = 0;
1316 out->resolved->tx_type = tx_type;
1317
1318 status_debug("Resolved %s/%s by %s (%s)",
1319 tx_type_name(out->tx_type),
1320 output_type_name(out->output_type),
1321 tx_type_name(tx_type),
1322 type_to_string(tmpctx, struct bitcoin_txid, txid));
1323}
1324
1325static void unknown_spend(struct tracked_output *out,
1326 const struct tx_parts *tx_parts)

Callers 7

steal_htlc_txFunction · 0.85
output_spentFunction · 0.85
handle_mutual_closeFunction · 0.85
handle_our_unilateralFunction · 0.85
handle_their_cheatFunction · 0.85
handle_their_unilateralFunction · 0.85

Calls 3

tx_type_nameFunction · 0.85
output_type_nameFunction · 0.85
type_to_stringClass · 0.50

Tested by

no test coverage detected