| 3810 | } |
| 3811 | |
| 3812 | void wallet_blocks_rollback(struct wallet *w, u32 height) |
| 3813 | { |
| 3814 | struct db_stmt *stmt = db_prepare_v2(w->db, SQL("DELETE FROM blocks " |
| 3815 | "WHERE height > ?")); |
| 3816 | db_bind_int(stmt, 0, height); |
| 3817 | db_exec_prepared_v2(take(stmt)); |
| 3818 | } |
| 3819 | |
| 3820 | bool wallet_outpoint_spend(struct wallet *w, const tal_t *ctx, const u32 blockheight, |
| 3821 | const struct bitcoin_outpoint *outpoint) |
no test coverage detected