diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-05-13 20:23:38 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-05-13 20:23:38 +0200 |
commit | 90ca90b576149c760a76a58f200aee64c416a6cb (patch) | |
tree | 5f626e1e4a24e11c14450b0aca9e9341ad69d6f7 /src | |
parent | 92df1cb1da3a3bee661437911356f5f47c23a41a (diff) |
-start with new ENABLE_TIPPING option
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 93cf9b996..5d3919a92 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -1859,20 +1859,21 @@ exchange_serve_process_config (void) return GNUNET_SYSERR; } if (GNUNET_OK != - GNUNET_config_get_amount (TEH_cfg, - "exchange", - "AML_THRESHOLD", - &TEH_aml_threshold)) + TALER_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, - "exchange", - "ENABLE_TIPPING", - &TEH_aml_threshold)) + TEH_enable_tipping + = GNUNET_CONFIGURATION_get_value_yesno ( + TEH_cfg, + "exchange", + "ENABLE_TIPPING"); + if (GNUNET_SYSERR == TEH_enable_tipping) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Need YES or NO in section `exchange' under `ENABLE_TIPPING'\n"); |