exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 0fe0c414e2e0954eee37cd9b13ea2dce2ed0e1f6
parent b4141832835648bc48a2a5612208dc061876d59c
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 19 Feb 2023 12:32:41 +0100

check currency matches before proceeding

Diffstat:
Msrc/exchange/taler-exchange-httpd.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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",