gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: lookahead/duration


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: lookahead/duration options are in [exchange], not [exchange_keys], use consistently
Date: Wed, 04 Jul 2018 00:43:27 +0200

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 52fa78b  lookahead/duration options are in [exchange], not 
[exchange_keys], use consistently
52fa78b is described below

commit 52fa78b448394f1fcd2faec648c0ed3d04d4c7de
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Jul 4 00:43:24 2018 +0200

    lookahead/duration options are in [exchange], not [exchange_keys], use 
consistently
---
 src/benchmark/taler-exchange-benchmark.conf        | 12 +++++++++++-
 .../test_benchmark_home/.config/taler/account.json |  5 +++++
 .../test_benchmark_home/.config/taler/sepa.json    |  9 ---------
 src/exchange-lib/test_exchange_api.conf            |  7 +------
 .../test_exchange_api_keys_cherry_picking.conf     | 12 +++---------
 src/exchange-lib/test_exchange_api_twisted.conf    | 19 ++++++-------------
 src/exchange/taler-exchange-httpd_keystate.c       |  8 ++++----
 src/exchange/test_taler_exchange_httpd.conf        | 22 +++++++++-------------
 8 files changed, 39 insertions(+), 55 deletions(-)

diff --git a/src/benchmark/taler-exchange-benchmark.conf 
b/src/benchmark/taler-exchange-benchmark.conf
index 8876738..8aacf1a 100644
--- a/src/benchmark/taler-exchange-benchmark.conf
+++ b/src/benchmark/taler-exchange-benchmark.conf
@@ -19,6 +19,8 @@ DB = postgres
 # Master public key used to sign the exchange's various keys
 MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
 
+
+
 [exchangedb-postgres]
 CONFIG = "postgres:///talercheck"
 
@@ -26,7 +28,15 @@ CONFIG = "postgres:///talercheck"
 
 # What is the main website of the bank?
 # (Not used unless the aggregator is run.)
-URL = "payto://x-taler-bank/localhost:8082/2"
+URL = "payto://x-taler-bank/localhost:8082/3"
+
+PLUGIN = "taler_bank"
+
+ENABLE_CREDIT = YES
+
+ENABLE_DEBIT = YES
+
+TALER_BANK_AUTH_METHOD = NONE
 
 # This is the response we give out for the /wire request.  It provides
 # wallets with the bank information for transfers to the exchange.
diff --git a/src/benchmark/test_benchmark_home/.config/taler/account.json 
b/src/benchmark/test_benchmark_home/.config/taler/account.json
new file mode 100644
index 0000000..0bfab15
--- /dev/null
+++ b/src/benchmark/test_benchmark_home/.config/taler/account.json
@@ -0,0 +1,5 @@
+{
+  "url": "payto://x-taler-bank/localhost:8082/3",
+  "salt": 
"KQV3VNMKGQVMMS9QWKZ5T5R7XJ0BN31019P5B8RVVNCH120ARF13B1T8FYXCNZVB3TZHEBQP0H8HY0MJ83TKBJ8Q7RXSM182TP17TAR",
+  "master_sig": 
"0VF39WRA844BCMSSKSYVZMXKCRVT38H72CT17N6184Z7PHWAKFC9RJCHB8TW1MNQ6N170SPS16JE4WJB4P004FNPQC7GGZG01ZB0G2R"
+}
\ No newline at end of file
diff --git a/src/benchmark/test_benchmark_home/.config/taler/sepa.json 
b/src/benchmark/test_benchmark_home/.config/taler/sepa.json
deleted file mode 100644
index b435ce8..0000000
--- a/src/benchmark/test_benchmark_home/.config/taler/sepa.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-  "name": "Max Musterman",
-  "bic": "COBADEFF370",
-  "type": "sepa",
-  "sig": 
"4EVRC2MCJPXQC8MC00831DNWEXMZAP4JQDDE1A7R6KR3MANG24RC1VQ55AX5A2E35S58VW1VSTENFTPHG5MWG9BSN8B8WXSV21KKW20",
-  "address": "Musterstadt",
-  "salt": 
"3KTM1ZRMWGEQPQ254S4R5R4Q8XM0ZYWTCTE01TZ76MVBSQ6RX7A5DR08WXVH1DCHR1R7ACRB7X0EVC2XDW1CBZM9WFSD9TRMZ90BR98",
-  "iban": "DE89370400440532013000"
-}
\ No newline at end of file
diff --git a/src/exchange-lib/test_exchange_api.conf 
b/src/exchange-lib/test_exchange_api.conf
index 8af93c1..49046b7 100644
--- a/src/exchange-lib/test_exchange_api.conf
+++ b/src/exchange-lib/test_exchange_api.conf
@@ -9,7 +9,7 @@ TALER_TEST_HOME = test_exchange_api_home/
 # Currency supported by the exchange (can only be one)
 CURRENCY = EUR
 
-[exchange_keys]
+[exchange]
 
 # how long is one signkey valid?
 signkey_duration = 4 weeks
@@ -17,15 +17,10 @@ signkey_duration = 4 weeks
 # how long are the signatures with the signkey valid?
 legal_duration = 2 years
 
-# how long do we generate denomination and signing keys
-# ahead of time?
-lookahead_sign = 32 weeks 1 day
-
 # how long do we provide to clients denomination and signing keys
 # ahead of time?
 lookahead_provide = 4 weeks 1 day
 
-[exchange]
 # HTTP port the exchange listens to
 PORT = 8081
 
diff --git a/src/exchange-lib/test_exchange_api_keys_cherry_picking.conf 
b/src/exchange-lib/test_exchange_api_keys_cherry_picking.conf
index 783ea6c..ba82c1c 100644
--- a/src/exchange-lib/test_exchange_api_keys_cherry_picking.conf
+++ b/src/exchange-lib/test_exchange_api_keys_cherry_picking.conf
@@ -8,7 +8,7 @@ TALER_TEST_HOME = test_exchange_api_home/
 # Currency supported by the exchange (can only be one)
 CURRENCY = EUR
 
-[exchange_keys]
+[exchange]
 
 # how long is one signkey valid?
 signkey_duration = 4 weeks
@@ -16,16 +16,13 @@ signkey_duration = 4 weeks
 # how long are the signatures with the signkey valid?
 legal_duration = 2 years
 
-# how long do we generate denomination and signing keys
-# ahead of time?
-lookahead_sign = 32 weeks 1 day
-
 # how long do we provide to clients denomination and signing keys
 # ahead of time?
 lookahead_provide = 4 weeks 1 day
 
+# Keep it short so we can prolong later!
+LOOKAHEAD_SIGN = 60 s
 
-[exchange]
 
 # HTTP port the exchange listens to
 PORT = 8081
@@ -40,9 +37,6 @@ DB = postgres
 # exchange (or the twister) is actually listening.
 BASE_URL = "http://localhost:8081/";
 
-# Keep it short so we can prolong later!
-LOOKAHEAD_SIGN = 60 s
-
 
 [exchangedb-postgres]
 CONFIG = "postgres:///talercheck"
diff --git a/src/exchange-lib/test_exchange_api_twisted.conf 
b/src/exchange-lib/test_exchange_api_twisted.conf
index 142dd99..12a07a1 100644
--- a/src/exchange-lib/test_exchange_api_twisted.conf
+++ b/src/exchange-lib/test_exchange_api_twisted.conf
@@ -33,23 +33,20 @@ TALER_TEST_HOME = test_exchange_api_home/
 # Currency supported by the exchange (can only be one)
 CURRENCY = EUR
 
-[exchange_keys]
+[exchange]
 
 # how long is one signkey valid?
-signkey_duration = 4 weeks
+SIGNKEY_DURATION = 4 weeks
 
 # how long are the signatures with the signkey valid?
-legal_duration = 2 years
-
-# how long do we generate denomination and signing keys
-# ahead of time?
-lookahead_sign = 32 weeks 1 day
+LEGAL_DURATION = 2 years
 
 # how long do we provide to clients denomination and signing keys
 # ahead of time?
-lookahead_provide = 4 weeks 1 day
+LOOKAHEAD_PROVIDE = 4 weeks 1 day
 
-[exchange]
+# Keep it short so the test runs fast.
+LOOKAHEAD_SIGN = 12 h
 
 # HTTP port the exchange listens to
 PORT = 8081
@@ -73,10 +70,6 @@ DB_CONN_STR = "postgres:///talercheck"
 [auditordb-postgres]
 DB_CONN_STR = "postgres:///talercheck"
 
-[exchange_keys]
-# Keep it short so the test runs fast.
-LOOKAHEAD_SIGN = 12 h
-
 [account-2]
 URL = payto://x-taler-bank/localhost:8082/2
 PLUGIN = taler_bank
diff --git a/src/exchange/taler-exchange-httpd_keystate.c 
b/src/exchange/taler-exchange-httpd_keystate.c
index 409e55b..987a938 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -572,13 +572,13 @@ TALER_EXCHANGE_conf_duration_provide ()
 
   if (GNUNET_OK !=
       GNUNET_CONFIGURATION_get_value_time (cfg,
-                                           "exchange_keys",
-                                           "lookahead_provide",
+                                           "exchange",
+                                           "LOOKAHEAD_PROVIDE",
                                            &rel))
   {
     GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
-                               "exchange_keys",
-                               "lookahead_provide",
+                               "exchange",
+                               "LOOKAHEAD_PROVIDE",
                                "time value required");
     GNUNET_assert (0);
   }
diff --git a/src/exchange/test_taler_exchange_httpd.conf 
b/src/exchange/test_taler_exchange_httpd.conf
index 39ae75d..01d0acd 100644
--- a/src/exchange/test_taler_exchange_httpd.conf
+++ b/src/exchange/test_taler_exchange_httpd.conf
@@ -2,30 +2,26 @@
 # Persistant data storage for the testcase
 TALER_TEST_HOME = test_taler_exchange_httpd_home/
 
+[taler]
+# Currency supported by the exchange (can only be one)
+CURRENCY = EUR
 
-[exchange_keys]
+
+[exchange]
 
 # how long is one signkey valid?
-signkey_duration = 4 weeks
+SIGNKEY_DURATION = 4 weeks
 
 # how long are the signatures with the signkey valid?
-legal_duration = 2 years
+LEGAL_DURATION = 2 years
 
 # how long do we generate denomination and signing keys
 # ahead of time?
-lookahead_sign = 32 weeks 1 day
+LOOKAHEAD_SIGN = 32 weeks 1 day
 
 # how long do we provide to clients denomination and signing keys
 # ahead of time?
-lookahead_provide = 4 weeks 1 day
-
-
-[taler]
-# Currency supported by the exchange (can only be one)
-CURRENCY = EUR
-
-
-[exchange]
+LOOKAHEAD_PROVIDE = 4 weeks 1 day
 
 # HTTP port the exchange listens to
 PORT = 8081

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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