aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/taler-wire-auditor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/taler-wire-auditor.c')
-rw-r--r--src/auditor/taler-wire-auditor.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c
index edd2270bf..dd7fd7271 100644
--- a/src/auditor/taler-wire-auditor.c
+++ b/src/auditor/taler-wire-auditor.c
@@ -1093,6 +1093,10 @@ process_debits (void *cls)
1093 struct WireAccount *wa = cls; 1093 struct WireAccount *wa = cls;
1094 struct TALER_WIRE_Plugin *wp; 1094 struct TALER_WIRE_Plugin *wp;
1095 1095
1096 /* skip accounts where DEBIT is not enabled */
1097 while ( (NULL != wa) &&
1098 (GNUNET_NO == wa->debit_enabled) )
1099 wa = wa->next;
1096 if (NULL == wa) 1100 if (NULL == wa)
1097 { 1101 {
1098 /* end of iteration, now check wire_out to see 1102 /* end of iteration, now check wire_out to see
@@ -1484,7 +1488,11 @@ process_credits (void *cls)
1484 struct WireAccount *wa = cls; 1488 struct WireAccount *wa = cls;
1485 struct TALER_WIRE_Plugin *wp; 1489 struct TALER_WIRE_Plugin *wp;
1486 enum GNUNET_DB_QueryStatus qs; 1490 enum GNUNET_DB_QueryStatus qs;
1487 1491
1492 /* skip accounts where CREDIT is not enabled */
1493 while ( (NULL != wa) &&
1494 (GNUNET_NO == wa->credit_enabled) )
1495 wa = wa->next;
1488 if (NULL == wa) 1496 if (NULL == wa)
1489 { 1497 {
1490 /* done with all accounts, conclude check */ 1498 /* done with all accounts, conclude check */
@@ -1636,6 +1644,9 @@ process_account_cb (void *cls,
1636 struct WireAccount *wa; 1644 struct WireAccount *wa;
1637 struct TALER_WIRE_Plugin *wp; 1645 struct TALER_WIRE_Plugin *wp;
1638 1646
1647 if ( (GNUNET_NO == ai->debit_enabled) &&
1648 (GNUNET_NO == ai->credit_enabled) )
1649 return; /* not an active exchange account */
1639 wp = TALER_WIRE_plugin_load (cfg, 1650 wp = TALER_WIRE_plugin_load (cfg,
1640 ai->plugin_name); 1651 ai->plugin_name);
1641 if (NULL == wp) 1652 if (NULL == wp)