| 4018 | } |
| 4019 | |
| 4020 | const struct short_channel_id * |
| 4021 | wallet_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 | |
| 4037 | void wallet_transaction_add(struct wallet *w, const struct wally_tx *tx, |
| 4038 | const u32 blockheight, const u32 txindex) |
no test coverage detected