| 3924 | } |
| 3925 | |
| 3926 | bool wallet_have_block(struct wallet *w, u32 blockheight) |
| 3927 | { |
| 3928 | bool result; |
| 3929 | struct db_stmt *stmt = db_prepare_v2( |
| 3930 | w->db, SQL("SELECT height FROM blocks WHERE height = ?")); |
| 3931 | db_bind_int(stmt, 0, blockheight); |
| 3932 | db_query_prepared(stmt); |
| 3933 | result = db_step(stmt); |
| 3934 | if (result) |
| 3935 | db_col_ignore(stmt, "height"); |
| 3936 | tal_free(stmt); |
| 3937 | return result; |
| 3938 | } |
| 3939 | |
| 3940 | struct outpoint *wallet_outpoint_for_scid(struct wallet *w, tal_t *ctx, |
| 3941 | const struct short_channel_id *scid) |
no test coverage detected