| 986 | } |
| 987 | |
| 988 | static 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 | |
| 1005 | struct onchain_fee **account_get_chain_fees(const tal_t *ctx, struct db *db, |
| 1006 | struct account *acct) |
no test coverage detected