MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_col_optional_scid

Function db_col_optional_scid

wallet/wallet.c:1644–1656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1642}
1643
1644static 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
1658void wallet_channel_clear_inflights(struct wallet *w,
1659 struct channel *chan)

Callers 4

wallet_stmt2inflightFunction · 0.85
wallet_stmt2channelFunction · 0.85

Calls 2

db_col_is_nullFunction · 0.85
db_col_short_channel_idFunction · 0.85

Tested by

no test coverage detected