| 1624 | } |
| 1625 | |
| 1626 | static struct short_channel_id *db_col_optional_scid(const tal_t *ctx, |
| 1627 | struct db_stmt *stmt, |
| 1628 | const char *colname) |
| 1629 | { |
| 1630 | struct short_channel_id *scid; |
| 1631 | |
| 1632 | if (db_col_is_null(stmt, colname)) |
| 1633 | return NULL; |
| 1634 | |
| 1635 | scid = tal(ctx, struct short_channel_id); |
| 1636 | *scid = db_col_short_channel_id(stmt, colname); |
| 1637 | return scid; |
| 1638 | } |
| 1639 | |
| 1640 | void wallet_channel_clear_inflights(struct wallet *w, |
| 1641 | struct channel *chan) |
no test coverage detected