aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-19 12:32:41 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-19 12:32:41 +0100
commit0fe0c414e2e0954eee37cd9b13ea2dce2ed0e1f6 (patch)
tree23680f9c27cfe01a1853ae240a9ed03a99b1d7ec
parentb4141832835648bc48a2a5612208dc061876d59c (diff)
check currency matches before proceeding
-rw-r--r--src/exchange/taler-exchange-httpd.c7
1 files changed, 7 insertions, 0 deletions
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",