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

Function wallet_utxoset_get_created

wallet/wallet.c:5123–5138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5121}
5122
5123const struct short_channel_id *
5124wallet_utxoset_get_created(const tal_t *ctx, struct wallet *w,
5125 u32 blockheight)
5126{
5127 struct db_stmt *stmt;
5128 stmt = db_prepare_v2(w->db, SQL("SELECT"
5129 " blockheight,"
5130 " txindex,"
5131 " outnum "
5132 "FROM utxoset "
5133 "WHERE blockheight = ?"));
5134 db_bind_int(stmt, blockheight);
5135 db_query_prepared(stmt);
5136
5137 return db_scids(ctx, stmt);
5138}
5139
5140void wallet_transaction_add(struct wallet *w, const struct wally_tx *tx,
5141 const u32 blockheight, const u32 txindex)

Callers 1

remove_tipFunction · 0.85

Calls 3

db_bind_intFunction · 0.85
db_query_preparedFunction · 0.85
db_scidsFunction · 0.85

Tested by

no test coverage detected