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

Function wallet_utxoset_get_created

wallet/wallet.c:4020–4035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4018}
4019
4020const struct short_channel_id *
4021wallet_utxoset_get_created(const tal_t *ctx, struct wallet *w,
4022 u32 blockheight)
4023{
4024 struct db_stmt *stmt;
4025 stmt = db_prepare_v2(w->db, SQL("SELECT"
4026 " blockheight,"
4027 " txindex,"
4028 " outnum "
4029 "FROM utxoset "
4030 "WHERE blockheight = ?"));
4031 db_bind_int(stmt, 0, blockheight);
4032 db_query_prepared(stmt);
4033
4034 return db_scids(ctx, stmt);
4035}
4036
4037void wallet_transaction_add(struct wallet *w, const struct wally_tx *tx,
4038 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