exchange

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

commit e01143daf39147110eeec21f38876db922d5ddfd
parent f9d4a9671521e77d3235364e98b19a1c7cc08cb9
Author: Florian Dold <florian.dold@gmail.com>
Date:   Tue, 19 Apr 2016 23:40:47 +0200

move currency to taler section, create taler.conf

Diffstat:
Msrc/Makefile.am | 4++++
Msrc/exchange-lib/test_exchange_api.conf | 4+++-
Msrc/exchange/exchange.conf | 2--
Msrc/exchange/test_taler_exchange_httpd.conf | 6++++--
Msrc/wire/plugin_wire_sepa.c | 4++--
Msrc/wire/plugin_wire_template.c | 4++--
Msrc/wire/plugin_wire_test.c | 6+++---
Msrc/wire/test_wire_plugin.conf | 2+-
8 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am @@ -15,6 +15,10 @@ if WALLET_ONLY SUBDIRS = include util else +pkgcfgdir = $(prefix)/share/taler/config.d/ +pkgcfg_DATA = \ + taler.conf + SUBDIRS = include util json $(PQ_DIR) $(BANK_LIB) wire exchangedb exchange exchange-tools if HAVE_LIBCURL SUBDIRS += exchange-lib diff --git a/src/exchange-lib/test_exchange_api.conf b/src/exchange-lib/test_exchange_api.conf @@ -4,10 +4,12 @@ # Persistant data storage for the testcase TALER_TEST_HOME = test_exchange_api_home/ -[exchange] +[taler] # Currency supported by the exchange (can only be one) CURRENCY = EUR +[exchange] + # Wire format supported by the exchange # We use 'test' for testing of the actual # coin operations, and 'sepa' to test SEPA-specific routines. diff --git a/src/exchange/exchange.conf b/src/exchange/exchange.conf @@ -1,8 +1,6 @@ # This file is in the public domain. # [exchange] -# Currency supported by the exchange (can only be one) -# CURRENCY = EUR # Where do we store the private keys the exchange needs at # runtime? (Denomination and signing keys are then stored diff --git a/src/exchange/test_taler_exchange_httpd.conf b/src/exchange/test_taler_exchange_httpd.conf @@ -2,11 +2,13 @@ # Persistant data storage for the testcase TALER_TEST_HOME = test_taler_exchange_httpd_home/ - -[exchange] +[taler] # Currency supported by the exchange (can only be one) CURRENCY = EUR + +[exchange] + # Wire format supported by the exchange # We use 'test' for testing of the actual # coin operations. diff --git a/src/wire/plugin_wire_sepa.c b/src/wire/plugin_wire_sepa.c @@ -737,12 +737,12 @@ libtaler_plugin_wire_sepa_init (void *cls) { if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, - "exchange", + "taler", "CURRENCY", &sc->currency)) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, - "exchange", + "taler", "CURRENCY"); GNUNET_free (sc); return NULL; diff --git a/src/wire/plugin_wire_template.c b/src/wire/plugin_wire_template.c @@ -242,12 +242,12 @@ libtaler_plugin_wire_template_init (void *cls) } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, - "exchange", + "taler", "CURRENCY", &tc->currency)) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, - "exchange", + "taler", "CURRENCY"); GNUNET_free (tc->bank_uri); GNUNET_free (tc); diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c @@ -224,7 +224,7 @@ test_amount_round (void *cls, if (NULL == tc->currency) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, - "exchange", + "taler", "CURRENCY"); return GNUNET_SYSERR; /* not configured with currency */ } @@ -820,12 +820,12 @@ libtaler_plugin_wire_test_init (void *cls) } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, - "exchange", + "taler", "CURRENCY", &tc->currency)) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, - "exchange", + "taler", "CURRENCY"); GNUNET_free (tc->bank_uri); GNUNET_free (tc); diff --git a/src/wire/test_wire_plugin.conf b/src/wire/test_wire_plugin.conf @@ -17,5 +17,5 @@ SEPA_RESPONSE_FILE = test_wire_plugin_sepa.json # is avaialble). BANK_URI = http://localhost/ -[exchange] +[taler] CURRENCY = "EUR"