From 3240844e48dc62b80c6167558677bcd7b83dd3c0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 29 Nov 2020 14:32:39 +0100 Subject: get code for most new endpoints to build (but DB not done) --- src/exchange/taler-exchange-httpd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/exchange/taler-exchange-httpd.c') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 1faea14fa..6dc689848 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -112,6 +112,11 @@ struct TALER_MasterPublicKeyP TEH_master_public_key; */ struct TALER_EXCHANGEDB_Plugin *TEH_plugin; +/** + * Our currency. + */ +char *TEH_currency; + /** * Default timeout in seconds for HTTP requests. */ @@ -814,6 +819,15 @@ exchange_serve_process_config (void) "REVOCATION_DIR"); return GNUNET_SYSERR; } + if (GNUNET_OK != + TALER_config_get_currency (TEH_cfg, + &TEH_currency)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "taler", + "CURRENCY"); + return GNUNET_SYSERR; + } { char *master_public_key_str; -- cgit v1.2.3