| 2281 | } |
| 2282 | |
| 2283 | void 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 | |
| 2298 | int wallet_extract_owned_outputs(struct wallet *w, const struct wally_tx *wtx, |
| 2299 | const u32 *blockheight, |
no test coverage detected