gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: check currency matches before pr


From: gnunet
Subject: [taler-exchange] branch master updated: check currency matches before proceeding
Date: Sun, 19 Feb 2023 12:32:43 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 0fe0c414 check currency matches before proceeding
0fe0c414 is described below

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

    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 e2115407..5b1adb59 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",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]