From 0fe0c414e2e0954eee37cd9b13ea2dce2ed0e1f6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Feb 2023 12:32:41 +0100 Subject: [PATCH] check currency matches before proceeding --- src/exchange/taler-exchange-httpd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index e21154076..5b1adb59f 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -1884,6 +1884,13 @@ exchange_serve_process_config (void) "Need amount in section `TALER' under `AML_THRESHOLD'\n"); return GNUNET_SYSERR; } + if (0 != strcmp (TEH_currency, + TEH_aml_threshold.currency)) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Amount in section `TALER' under `AML_THRESHOLD' uses the wrong currency!\n"); + return GNUNET_SYSERR; + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (TEH_cfg, "exchange",