summaryrefslogtreecommitdiff
path: root/src/exchangedb/exchangedb_transactions.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-10-14 00:29:32 +0200
committerChristian Grothoff <christian@grothoff.org>2022-10-14 00:30:52 +0200
commit5f333f817c0fe4d66d1223833f8b8f7f22ad174c (patch)
treecbb80400469e0e0af9fe9bf29d0a7b270597f5ec /src/exchangedb/exchangedb_transactions.c
parent1ee69f6f1d93349a3e576a86c1d93d23ccec28ce (diff)
downloadexchange-5f333f817c0fe4d66d1223833f8b8f7f22ad174c.tar.gz
exchange-5f333f817c0fe4d66d1223833f8b8f7f22ad174c.tar.bz2
exchange-5f333f817c0fe4d66d1223833f8b8f7f22ad174c.zip
add reserve-open-deposit transactions to coin histories
Diffstat (limited to 'src/exchangedb/exchangedb_transactions.c')
-rw-r--r--src/exchangedb/exchangedb_transactions.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exchangedb/exchangedb_transactions.c b/src/exchangedb/exchangedb_transactions.c
index ef46bace6..60b95d6f6 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)