| 5121 | } |
| 5122 | |
| 5123 | const struct short_channel_id * |
| 5124 | wallet_utxoset_get_created(const tal_t *ctx, struct wallet *w, |
| 5125 | u32 blockheight) |
| 5126 | { |
| 5127 | struct db_stmt *stmt; |
| 5128 | stmt = db_prepare_v2(w->db, SQL("SELECT" |
| 5129 | " blockheight," |
| 5130 | " txindex," |
| 5131 | " outnum " |
| 5132 | "FROM utxoset " |
| 5133 | "WHERE blockheight = ?")); |
| 5134 | db_bind_int(stmt, blockheight); |
| 5135 | db_query_prepared(stmt); |
| 5136 | |
| 5137 | return db_scids(ctx, stmt); |
| 5138 | } |
| 5139 | |
| 5140 | void wallet_transaction_add(struct wallet *w, const struct wally_tx *tx, |
| 5141 | const u32 blockheight, const u32 txindex) |
no test coverage detected