gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 11/11: reserve history amount includes fee, add it


From: gnunet
Subject: [taler-exchange] 11/11: reserve history amount includes fee, add it
Date: Sat, 28 Mar 2020 21:57:31 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit da1df35db36c69c7a536e2514d934caad6391ae0
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Mar 28 21:46:03 2020 +0100

    reserve history amount includes fee, add it
---
 src/testing/testing_api_cmd_exec_closer.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/testing/testing_api_cmd_exec_closer.c 
b/src/testing/testing_api_cmd_exec_closer.c
index 811bf1b8..78369699 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;
   }
   {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]