gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: do not report missing reserve cl


From: gnunet
Subject: [taler-exchange] branch master updated: do not report missing reserve closures of amount 0.0
Date: Sat, 08 Feb 2020 17:55:24 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 37c29157 do not report missing reserve closures of amount 0.0
37c29157 is described below

commit 37c29157691715c3861b473b98444534fb33cbb2
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Feb 8 17:55:22 2020 +0100

    do not report missing reserve closures of amount 0.0
---
 src/auditor/taler-wire-auditor.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c
index 5a68f165..92664fb8 100644
--- a/src/auditor/taler-wire-auditor.c
+++ b/src/auditor/taler-wire-auditor.c
@@ -704,13 +704,15 @@ check_pending_rc (void *cls,
                 TALER_amount_add (&total_closure_amount_lag,
                                   &total_closure_amount_lag,
                                   &rc->amount));
-  report (report_closure_lags,
-          json_pack ("{s:I, s:o, s:o, s:o, s:s}",
-                     "row", (json_int_t) rc->rowid,
-                     "amount", TALER_JSON_from_amount (&rc->amount),
-                     "deadline", json_from_time_abs (rc->execution_date),
-                     "wtid", GNUNET_JSON_from_data_auto (&rc->wtid),
-                     "account", rc->receiver_account));
+  if ( (0 != rc->amount.value) ||
+       (0 != rc->amount.fraction) )
+    report (report_closure_lags,
+            json_pack ("{s:I, s:o, s:o, s:o, s:s}",
+                       "row", (json_int_t) rc->rowid,
+                       "amount", TALER_JSON_from_amount (&rc->amount),
+                       "deadline", json_from_time_abs (rc->execution_date),
+                       "wtid", GNUNET_JSON_from_data_auto (&rc->wtid),
+                       "account", rc->receiver_account));
   pp.last_reserve_close_uuid
     = GNUNET_MIN (pp.last_reserve_close_uuid,
                   rc->rowid);

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



reply via email to

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