aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_purse_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-05 21:00:41 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-05 21:00:49 +0200
commitbdbd2a464df579c014d71800cf72571dc73ed645 (patch)
tree2c68b7a2b7bc95c2aaca0b4500fc79b4658d7d30 /src/testing/testing_api_cmd_purse_deposit.c
parent60f609135d04ce3bb4ecad6405572bb6d601fa43 (diff)
downloadexchange-bdbd2a464df579c014d71800cf72571dc73ed645.tar.xz
no purse fee if purse is successfully merged
Diffstat (limited to 'src/testing/testing_api_cmd_purse_deposit.c')
-rw-r--r--src/testing/testing_api_cmd_purse_deposit.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_purse_deposit.c b/src/testing/testing_api_cmd_purse_deposit.c
index 862163c6b..57cc48cf8 100644
--- a/src/testing/testing_api_cmd_purse_deposit.c
+++ b/src/testing/testing_api_cmd_purse_deposit.c
@@ -212,19 +212,14 @@ deposit_cb (void *cls,
GNUNET_assert (NULL != gf);
/* Note: change when flags below changes! */
+ ds->reserve_history.amount
+ = dr->details.success.purse_value_after_fees;
if (true)
{
- /* If we paid a purse fee, we need to subtract the
- purse fee from the reserve history amount */
- TALER_amount_subtract (&ds->reserve_history.amount,
- &dr->details.success.purse_value_after_fees,
- &gf->fees.purse);
ds->reserve_history.details.merge_details.purse_fee = gf->fees.purse;
}
else
{
- ds->reserve_history.amount
- = dr->details.success.purse_value_after_fees;
TALER_amount_set_zero (
ds->reserve_history.amount.currency,
&ds->reserve_history.details.merge_details.purse_fee);