summaryrefslogtreecommitdiff
path: root/src/exchangedb/exchangedb_transactions.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-23 16:02:55 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-23 16:02:55 +0200
commit76b8a2a8de551db8801bd42111bd959a28517cb3 (patch)
tree979340c340161640843371c02bf00cfec7554a0d /src/exchangedb/exchangedb_transactions.c
parenta509a91f924cad3b5f0336f78e5c80e3621ad52b (diff)
downloadexchange-76b8a2a8de551db8801bd42111bd959a28517cb3.tar.gz
exchange-76b8a2a8de551db8801bd42111bd959a28517cb3.tar.bz2
exchange-76b8a2a8de551db8801bd42111bd959a28517cb3.zip
include purse deposits in coin history
Diffstat (limited to 'src/exchangedb/exchangedb_transactions.c')
-rw-r--r--src/exchangedb/exchangedb_transactions.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/exchangedb/exchangedb_transactions.c b/src/exchangedb/exchangedb_transactions.c
index 81a33b172..ef46bace6 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)