From 5f333f817c0fe4d66d1223833f8b8f7f22ad174c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 14 Oct 2022 00:29:32 +0200 Subject: add reserve-open-deposit transactions to coin histories --- src/exchangedb/exchangedb_transactions.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/exchangedb/exchangedb_transactions.c') diff --git a/src/exchangedb/exchangedb_transactions.c b/src/exchangedb/exchangedb_transactions.c index ef46bace..60b95d6f 100644 --- a/src/exchangedb/exchangedb_transactions.c +++ b/src/exchangedb/exchangedb_transactions.c @@ -131,6 +131,17 @@ TALER_EXCHANGEDB_calculate_transaction_list_totals ( } deposit_fee = pos->details.purse_deposit->deposit_fee; break; + case TALER_EXCHANGEDB_TT_RESERVE_OPEN: + /* spent += pos->amount_with_fee */ + if (0 > + TALER_amount_add (&spent, + &spent, + &pos->details.reserve_open->coin_contribution)) + { + GNUNET_break (0); + return GNUNET_SYSERR; + } + break; } } if (have_refund) -- cgit v1.2.3