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

Function wallet_confirm_tx

wallet/wallet.c:3260–3273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3258}
3259
3260void wallet_confirm_tx(struct wallet *w,
3261 const struct bitcoin_txid *txid,
3262 const u32 confirmation_height)
3263{
3264 struct db_stmt *stmt;
3265 assert(confirmation_height > 0);
3266 stmt = db_prepare_v2(w->db, SQL("UPDATE outputs "
3267 "SET confirmation_height = ? "
3268 "WHERE prev_out_tx = ?"));
3269 db_bind_int(stmt, confirmation_height);
3270 db_bind_sha256d(stmt, &txid->shad);
3271
3272 db_exec_prepared_v2(take(stmt));
3273}
3274
3275static void got_utxo(struct wallet *w,
3276 u64 keyindex,

Callers 2

got_utxoFunction · 0.85
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