commit da1df35db36c69c7a536e2514d934caad6391ae0
parent bc57f007e44ee1634e7ccf617de3fb66b1dc34a5
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 28 Mar 2020 21:46:03 +0100
reserve history amount includes fee, add it
Diffstat:
1 file 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
@@ -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;
}
{