From 76b8a2a8de551db8801bd42111bd959a28517cb3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 May 2022 16:02:55 +0200 Subject: include purse deposits in coin history --- src/exchangedb/exchangedb_transactions.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/exchangedb/exchangedb_transactions.c') diff --git a/src/exchangedb/exchangedb_transactions.c b/src/exchangedb/exchangedb_transactions.c index 81a33b17..ef46bace 100644 --- a/src/exchangedb/exchangedb_transactions.c +++ b/src/exchangedb/exchangedb_transactions.c @@ -119,6 +119,18 @@ TALER_EXCHANGEDB_calculate_transaction_list_totals ( return GNUNET_SYSERR; } break; + case TALER_EXCHANGEDB_TT_PURSE_DEPOSIT: + /* spent += pos->amount_with_fee */ + if (0 > + TALER_amount_add (&spent, + &spent, + &pos->details.purse_deposit->amount)) + { + GNUNET_break (0); + return GNUNET_SYSERR; + } + deposit_fee = pos->details.purse_deposit->deposit_fee; + break; } } if (have_refund) -- cgit v1.2.3