aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-13 20:22:16 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-13 20:22:16 +0200
commit92df1cb1da3a3bee661437911356f5f47c23a41a (patch)
tree029dd603cce0ac30542542763e82686ee0190889 /src/exchange/taler-exchange-httpd.c
parentc9ed524bc32beb7f5e8be5eeed077e54b81cf4df (diff)
-move AML_THRESHOLD option to exchange
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r--src/exchange/taler-exchange-httpd.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 7e11655c..93cf9b99 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -154,6 +154,11 @@ struct TALER_EXCHANGEDB_Plugin *TEH_plugin;
char *TEH_currency;
/**
+ * Option set to #GNUNET_YES if tipping is enabled.
+ */
+int TEH_enable_tipping;
+
+/**
* What is the largest amount we allow a peer to
* merge into a reserve before always triggering
* an AML check?
@@ -1854,13 +1859,23 @@ exchange_serve_process_config (void)
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
+ GNUNET_config_get_amount (TEH_cfg,
+ "exchange",
+ "AML_THRESHOLD",
+ &TEH_aml_threshold))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Need amount in section `exchange' under `AML_THRESHOLD'\n");
+ return GNUNET_SYSERR;
+ }
+ if (GNUNET_OK !=
TALER_config_get_amount (TEH_cfg,
- "taler",
- "AML_THRESHOLD",
+ "exchange",
+ "ENABLE_TIPPING",
&TEH_aml_threshold))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Need amount in section `TALER' under `AML_THRESHOLD'\n");
+ "Need YES or NO in section `exchange' under `ENABLE_TIPPING'\n");
return GNUNET_SYSERR;
}
if (0 != strcmp (TEH_currency,