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

Function db_col_optional_scid

wallet/wallet.c:1626–1638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1624}
1625
1626static 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
1640void wallet_channel_clear_inflights(struct wallet *w,
1641 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