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

Function db_cols_account

wallet/wallet.c:7128–7143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7126}
7127
7128static void db_cols_account(struct db_stmt *stmt,
7129 struct lightningd *ld,
7130 const char *channel_colname,
7131 const char *nonnonchannel_colname,
7132 struct mvt_account_id *account)
7133{
7134 if (db_col_is_null(stmt, channel_colname)) {
7135 account->channel = NULL;
7136 account->alt_account = db_col_strdup(account, stmt, nonnonchannel_colname);
7137 } else {
7138 account->alt_account = NULL;
7139 db_col_ignore(stmt, nonnonchannel_colname);
7140 account->channel = channel_by_dbid(ld, db_col_u64(stmt, channel_colname));
7141 assert(account->channel);
7142 }
7143}
7144
7145static void db_col_credit_or_debit(struct db_stmt *stmt,
7146 const char *colname,

Callers 2

Calls 5

db_col_is_nullFunction · 0.85
db_col_strdupFunction · 0.85
db_col_ignoreFunction · 0.85
db_col_u64Function · 0.85
channel_by_dbidFunction · 0.50

Tested by

no test coverage detected