From da1df35db36c69c7a536e2514d934caad6391ae0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Mar 2020 21:46:03 +0100 Subject: reserve history amount includes fee, add it --- src/testing/testing_api_cmd_exec_closer.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; } { -- cgit v1.2.3