| 3258 | } |
| 3259 | |
| 3260 | void 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 | |
| 3275 | static void got_utxo(struct wallet *w, |
| 3276 | u64 keyindex, |
no test coverage detected