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

Function wallet_confirm_tx

wallet/wallet.c:2283–2296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2281}
2282
2283void wallet_confirm_tx(struct wallet *w,
2284 const struct bitcoin_txid *txid,
2285 const u32 confirmation_height)
2286{
2287 struct db_stmt *stmt;
2288 assert(confirmation_height > 0);
2289 stmt = db_prepare_v2(w->db, SQL("UPDATE outputs "
2290 "SET confirmation_height = ? "
2291 "WHERE prev_out_tx = ?"));
2292 db_bind_int(stmt, 0, confirmation_height);
2293 db_bind_sha256d(stmt, 1, &txid->shad);
2294
2295 db_exec_prepared_v2(take(stmt));
2296}
2297
2298int wallet_extract_owned_outputs(struct wallet *w, const struct wally_tx *wtx,
2299 const u32 *blockheight,

Callers 2

closeinfo_txid_confirmedFunction · 0.85

Calls 3

db_bind_intFunction · 0.85
db_bind_sha256dFunction · 0.85
db_exec_prepared_v2Function · 0.85

Tested by

no test coverage detected