gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: skip accounts not c


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: skip accounts not configured for credit/debit
Date: Sat, 24 Aug 2019 23:14:17 +0200

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 1457e0ad skip accounts not configured for credit/debit
1457e0ad is described below

commit 1457e0adfc3d5e01195a4c1d80f8e5abdf65f17e
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Aug 24 23:14:15 2019 +0200

    skip accounts not configured for credit/debit
---
 src/auditor/taler-wire-auditor.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c
index edd2270b..dd7fd727 100644
--- a/src/auditor/taler-wire-auditor.c
+++ b/src/auditor/taler-wire-auditor.c
@@ -1093,6 +1093,10 @@ process_debits (void *cls)
   struct WireAccount *wa = cls;
   struct TALER_WIRE_Plugin *wp;
 
+    /* skip accounts where DEBIT is not enabled */
+  while ( (NULL != wa) &&
+          (GNUNET_NO == wa->debit_enabled) )
+    wa = wa->next;
   if (NULL == wa)
   {
     /* end of iteration, now check wire_out to see
@@ -1484,7 +1488,11 @@ process_credits (void *cls)
   struct WireAccount *wa = cls;
   struct TALER_WIRE_Plugin *wp;
   enum GNUNET_DB_QueryStatus qs;
- 
+
+  /* skip accounts where CREDIT is not enabled */
+  while ( (NULL != wa) &&
+          (GNUNET_NO == wa->credit_enabled) )
+    wa = wa->next;
   if (NULL == wa)
   {
     /* done with all accounts, conclude check */
@@ -1636,6 +1644,9 @@ process_account_cb (void *cls,
   struct WireAccount *wa;
   struct TALER_WIRE_Plugin *wp;
 
+  if ( (GNUNET_NO == ai->debit_enabled) &&
+       (GNUNET_NO == ai->credit_enabled) )
+    return; /* not an active exchange account */
   wp = TALER_WIRE_plugin_load (cfg,
                                ai->plugin_name);
   if (NULL == wp)

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



reply via email to

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