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

Function find_txos_for_tx

plugins/bkpr/recorder.c:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static struct chain_event **find_txos_for_tx(const tal_t *ctx,
62 const struct bkpr *bkpr,
63 struct command *cmd,
64 const struct bitcoin_txid *txid)
65{
66 return chain_events_from_sql(ctx, bkpr, cmd,
67 SELECT_CHAIN_EVENTS
68 /* utxo is txid:outnum */
69 " WHERE utxo LIKE '%s:%%'"
70 " AND created_index <= %"PRIu64
71 " ORDER BY "
72 " utxo"
73 ", spending_txid NULLS FIRST"
74 ", blockheight",
75 fmt_bitcoin_txid(tmpctx, txid),
76 bkpr->chainmoves_index);
77}
78
79static struct txo_pair *new_txo_pair(const tal_t *ctx)
80{

Callers 1

find_txo_setFunction · 0.85

Calls 2

chain_events_from_sqlFunction · 0.85
fmt_bitcoin_txidFunction · 0.85

Tested by

no test coverage detected