| 1642 | } |
| 1643 | |
| 1644 | static struct short_channel_id *db_col_optional_scid(const tal_t *ctx, |
| 1645 | struct db_stmt *stmt, |
| 1646 | const char *colname) |
| 1647 | { |
| 1648 | struct short_channel_id *scid; |
| 1649 | |
| 1650 | if (db_col_is_null(stmt, colname)) |
| 1651 | return NULL; |
| 1652 | |
| 1653 | scid = tal(ctx, struct short_channel_id); |
| 1654 | *scid = db_col_short_channel_id(stmt, colname); |
| 1655 | return scid; |
| 1656 | } |
| 1657 | |
| 1658 | void wallet_channel_clear_inflights(struct wallet *w, |
| 1659 | struct channel *chan) |
no test coverage detected