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

Function stmt2onchain_fee

plugins/bkpr/recorder.c:988–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988static struct onchain_fee *stmt2onchain_fee(const tal_t *ctx,
989 struct db_stmt *stmt)
990{
991 struct onchain_fee *of = tal(ctx, struct onchain_fee);
992
993 of->acct_db_id = db_col_u64(stmt, "of.account_id");
994 of->acct_name = db_col_strdup(of, stmt, "a.name");
995 db_col_txid(stmt, "of.txid", &of->txid);
996 db_col_amount_msat(stmt, "of.credit", &of->credit);
997 db_col_amount_msat(stmt, "of.debit", &of->debit);
998 of->currency = db_col_strdup(of, stmt, "of.currency");
999 of->timestamp = db_col_u64(stmt, "of.timestamp");
1000 of->update_count = db_col_int(stmt, "of.update_count");
1001
1002 return of;
1003}
1004
1005struct onchain_fee **account_get_chain_fees(const tal_t *ctx, struct db *db,
1006 struct account *acct)

Callers 3

account_get_chain_feesFunction · 0.85
list_chain_fees_timeboxFunction · 0.85
account_onchain_feesFunction · 0.85

Calls 5

db_col_u64Function · 0.85
db_col_strdupFunction · 0.85
db_col_txidFunction · 0.85
db_col_amount_msatFunction · 0.85
db_col_intFunction · 0.85

Tested by

no test coverage detected