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

Function unknown_spend

onchaind/onchaind.c:1325–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1323}
1324
1325static void unknown_spend(struct tracked_output *out,
1326 const struct tx_parts *tx_parts)
1327{
1328 out->resolved = tal(out, struct resolution);
1329 out->resolved->txid = tx_parts->txid;
1330 out->resolved->depth = 0;
1331 out->resolved->tx_type = UNKNOWN_TXTYPE;
1332
1333 status_broken("Unknown spend of %s/%s by %s",
1334 tx_type_name(out->tx_type),
1335 output_type_name(out->output_type),
1336 type_to_string(tmpctx, struct bitcoin_txid,
1337 &tx_parts->txid));
1338}
1339
1340static u64 unmask_commit_number(const struct tx_parts *tx,
1341 uint32_t locktime,

Callers 1

output_spentFunction · 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