summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-28 21:46:03 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-28 21:46:03 +0100
commitda1df35db36c69c7a536e2514d934caad6391ae0 (patch)
tree5bed9de2b6296707196aafb17e05aa0106082459 /src
parentbc57f007e44ee1634e7ccf617de3fb66b1dc34a5 (diff)
downloadexchange-da1df35db36c69c7a536e2514d934caad6391ae0.tar.gz
exchange-da1df35db36c69c7a536e2514d934caad6391ae0.tar.bz2
exchange-da1df35db36c69c7a536e2514d934caad6391ae0.zip
reserve history amount includes fee, add it
Diffstat (limited to 'src')
-rw-r--r--src/testing/testing_api_cmd_exec_closer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_exec_closer.c b/src/testing/testing_api_cmd_exec_closer.c
index 811bf1b8a..783696996 100644
--- a/src/testing/testing_api_cmd_exec_closer.c
+++ b/src/testing/testing_api_cmd_exec_closer.c
@@ -237,6 +237,13 @@ TALER_TESTING_cmd_exec_closer (const char *label,
label);
GNUNET_assert (0);
}
+ /* expected amount includes fee, while our argument
+ gives the amount _without_ the fee. So add the fee. */
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_add (&as->reserve_history.amount,
+ &as->reserve_history.amount,
+ &as->reserve_history.details.close_details.
+ fee));
as->reserve_history.type = TALER_EXCHANGE_RTT_CLOSE;
}
{