gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] 01/02: fix totaling up


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 01/02: fix totaling up
Date: Sun, 06 Oct 2019 16:54:13 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

commit e308d83f1bf4c59c034f91744c59296d97aba5fa
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Oct 6 12:46:57 2019 +0200

    fix totaling up
---
 src/auditor/taler-auditor.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 87fa621b..df4afd49 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -1675,6 +1675,10 @@ verify_reserve_balance (void *cls,
     }
     else
     {
+      GNUNET_assert (GNUNET_OK ==
+                     TALER_amount_add (&total_balance_reserve_not_closed,
+                                       &total_balance_reserve_not_closed,
+                                       &nbalance));
       report (report_reserve_not_closed_inconsistencies,
               json_pack ("{s:o, s:o, s:o, s:s}",
                          "reserve_pub",
@@ -5413,14 +5417,18 @@ run (void *cls,
                       TALER_JSON_from_amount (&total_refund_fee_income),
                       "income_fee_total",
                       TALER_JSON_from_amount (&income_fee_total),
+                      /* Tested in test-auditor.sh #18 */
                       "emergencies",
                       report_emergencies,
+                      /* Tested in test-auditor.sh #18 */
                       "emergencies_risk_by_amount",
                       TALER_JSON_from_amount (
                         &reported_emergency_risk_by_amount),
+                      /* Tested in test-auditor.sh #21 */
                       "reserve_not_closed_inconsistencies",
                       report_reserve_not_closed_inconsistencies,
                       /* block */
+                      /* Tested in test-auditor.sh #21 */
                       "total_balance_reserve_not_closed",
                       TALER_JSON_from_amount (
                         &total_balance_reserve_not_closed),
@@ -5476,14 +5484,18 @@ run (void *cls,
                         &total_missed_deposit_confirmations),
                       "total_payback_loss",
                       TALER_JSON_from_amount (&total_payback_loss),
+                      /* Tested in test-auditor.sh #18 */
                       "emergencies_by_count",
                       report_emergencies_by_count,
+                      /* Tested in test-auditor.sh #18 */
                       "emergencies_risk_by_count",
                       TALER_JSON_from_amount (
                         &reported_emergency_risk_by_count),
+                      /* Tested in test-auditor.sh #18 */
                       "emergencies_loss",
                       TALER_JSON_from_amount (&reported_emergency_loss),
                       /* block */
+                      /* Tested in test-auditor.sh #18 */
                       "emergencies_loss_by_count",
                       TALER_JSON_from_amount 
(&reported_emergency_loss_by_count)
                       );

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



reply via email to

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