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: Add benchmark examp


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: Add benchmark example config file.
Date: Wed, 25 Jul 2018 15:43:44 +0200

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

marcello pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 953a2bd  Add benchmark example config file.
953a2bd is described below

commit 953a2bd382471ea6ce8fefbb6a9f4d8a9251d2b1
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jul 25 15:43:27 2018 +0200

    Add benchmark example config file.
---
 src/benchmark/bank_details.json                    |   1 -
 src/benchmark/example.conf                         | 121 +++++++++++++++++++++
 src/benchmark/merchant_details.json                |   1 -
 src/benchmark/taler-exchange-benchmark.conf        | 116 --------------------
 .../test_benchmark_home/.config/taler/account.json |   5 -
 .../test_benchmark_home/.config/taler/test.json    |   8 --
 .../share/taler/exchange/offline-keys/master.priv  |   1 -
 7 files changed, 121 insertions(+), 132 deletions(-)

diff --git a/src/benchmark/bank_details.json b/src/benchmark/bank_details.json
deleted file mode 100644
index 23f1811..0000000
--- a/src/benchmark/bank_details.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type":"test", "bank_url":"http://localhost:8082/";, "account_number":63}
diff --git a/src/benchmark/example.conf b/src/benchmark/example.conf
new file mode 100644
index 0000000..2a10b1f
--- /dev/null
+++ b/src/benchmark/example.conf
@@ -0,0 +1,121 @@
+[taler]
+# Must be EUR, as refresh CMDs have hardcoded currency.
+currency = EUR
+
+[paths]
+# Apparently ignored by the bank.
+taler_run = $HOME/run
+taler_test_home = /tmp/taler_test_home
+
+[exchange]
+base_url = http://localhost:18080/
+serve = tcp
+port = 18080
+
+# NOTE: this is the only value that cannot be
+# generated on the fly, so it must be set beforehand.
+master_public_key = VN3AZMENQAW2AWGY8SV7W9KF2ZG44GR904ADEWKT7K98FWBD0QWG
+master_priv_file = ${TALER_RUN}/exchange/priv
+db = postgres
+lookahead_sign = 12 h
+
+[exchangedb]
+wirefee_base_dir = ${TALER_TEST_HOME}/exchange/wirefees/
+auditor_base_dir = ${TALER_TEST_HOME}/auditor/sigs/
+
+[exchangedb-postgres]
+config = postgres:///talercheck
+
+[account-1]
+url = payto://x-taler-bank/localhost:8080/2
+# NOTE: the user should run `taler-exchange-wire' _before_
+# running the benchmark in order to get this JSON defined.
+wire_response = ${TALER_TEST_HOME}/exchange/account-benchmark-2.json
+plugin = taler_bank
+taler_bank_auth_method = basic
+username = Exchange
+password = x
+enable_debit = yes
+enable_credit = yes
+
+[fees-x-taler-bank]
+wire-fee-2018 = EUR:0.01
+wire-fee-2019 = EUR:0.01
+wire-fee-2020 = EUR:0.01
+wire-fee-2021 = EUR:0.01
+wire-fee-2022 = EUR:0.01
+wire-fee-2023 = EUR:0.01
+wire-fee-2024 = EUR:0.01
+wire-fee-2025 = EUR:0.01
+wire-fee-2026 = EUR:0.01
+wire-fee-2027 = EUR:0.01
+closing-fee-2018 = EUR:0.01
+closing-fee-2019 = EUR:0.01
+closing-fee-2020 = EUR:0.01
+closing-fee-2021 = EUR:0.01
+closing-fee-2022 = EUR:0.01
+closing-fee-2023 = EUR:0.01
+closing-fee-2024 = EUR:0.01
+closing-fee-2025 = EUR:0.01
+closing-fee-2026 = EUR:0.01
+closing-fee-2027 = EUR:0.01
+
+[coin_eur_ct_1]
+value = EUR:0.01
+duration_overlap = 5 minutes
+duration_withdraw = 7 days
+duration_spend = 2 years
+duration_legal = 3 years
+fee_withdraw = EUR:0.00
+fee_deposit = EUR:0.00
+fee_refresh = EUR:0.01
+fee_refund = EUR:0.01
+rsa_keysize = 1024
+
+[coin_eur_ct_10]
+value = EUR:0.10
+duration_overlap = 5 minutes
+duration_withdraw = 7 days
+duration_spend = 2 years
+duration_legal = 3 years
+fee_withdraw = EUR:0.01
+fee_deposit = EUR:0.01
+fee_refresh = EUR:0.03
+fee_refund = EUR:0.01
+rsa_keysize = 1024
+
+[coin_eur_1]
+value = EUR:1
+duration_overlap = 5 minutes
+duration_withdraw = 7 days
+duration_spend = 2 years
+duration_legal = 3 years
+fee_withdraw = EUR:0.01
+fee_deposit = EUR:0.01
+fee_refresh = EUR:0.03
+fee_refund = EUR:0.01
+rsa_keysize = 1024
+
+[coin_eur_5]
+value = EUR:5
+duration_overlap = 5 minutes
+duration_withdraw = 7 days
+duration_spend = 2 years
+duration_legal = 3 years
+fee_withdraw = EUR:0.01
+fee_deposit = EUR:0.01
+fee_refresh = EUR:0.03
+fee_refund = EUR:0.01
+rsa_keysize = 1024
+
+[coin_eur_10]
+value = EUR:10
+duration_overlap = 5 minutes
+duration_withdraw = 7 days
+duration_spend = 2 years
+duration_legal = 3 years
+fee_withdraw = EUR:0.01
+fee_deposit = EUR:0.01
+fee_refresh = EUR:0.03
+fee_refund = EUR:0.01
+rsa_keysize = 1024
diff --git a/src/benchmark/merchant_details.json 
b/src/benchmark/merchant_details.json
deleted file mode 100644
index db98326..0000000
--- a/src/benchmark/merchant_details.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type":"test", "bank_url":"http://localhost:8082/";, "account_number":64}
diff --git a/src/benchmark/taler-exchange-benchmark.conf 
b/src/benchmark/taler-exchange-benchmark.conf
deleted file mode 100644
index 8aacf1a..0000000
--- a/src/benchmark/taler-exchange-benchmark.conf
+++ /dev/null
@@ -1,116 +0,0 @@
-[benchmark]
-BANK_DETAILS = bank_details.json
-MERCHANT_DETAILS = merchant_details.json
-
-[PATHS]
-# Persistant data storage for the testcase
-TALER_TEST_HOME = test_benchmark_home/
-
-[taler]
-CURRENCY = KUDOS
-
-[exchange]
-
-# HTTP port the exchange listens to
-PORT = 8081
-# How to access our database
-DB = postgres
-
-# Master public key used to sign the exchange's various keys
-MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
-
-
-
-[exchangedb-postgres]
-CONFIG = "postgres:///talercheck"
-
-[account-exchange]
-
-# What is the main website of the bank?
-# (Not used unless the aggregator is run.)
-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.
-WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account.json
-
-
-[fees-x-taler-bank]
-WIRE-FEE-2017 = KUDOS:0.01
-WIRE-FEE-2018 = KUDOS:0.01
-WIRE-FEE-2019 = KUDOS:0.01
-WIRE-FEE-2020 = KUDOS:0.01
-WIRE-FEE-2021 = KUDOS:0.01
-WIRE-FEE-2022 = KUDOS:0.01
-WIRE-FEE-2023 = KUDOS:0.01
-WIRE-FEE-2024 = KUDOS:0.01
-WIRE-FEE-2025 = KUDOS:0.01
-WIRE-FEE-2026 = KUDOS:0.01
-
-CLOSING-FEE-2017 = KUDOS:0.01
-CLOSING-FEE-2018 = KUDOS:0.01
-CLOSING-FEE-2019 = KUDOS:0.01
-CLOSING-FEE-2020 = KUDOS:0.01
-CLOSING-FEE-2021 = KUDOS:0.01
-CLOSING-FEE-2022 = KUDOS:0.01
-CLOSING-FEE-2023 = KUDOS:0.01
-CLOSING-FEE-2024 = KUDOS:0.01
-CLOSING-FEE-2025 = KUDOS:0.01
-CLOSING-FEE-2026 = KUDOS:0.01
-
-
-[coin_kudos_1]
-value = KUDOS:1
-duration_overlap = 5 minutes
-duration_withdraw = 7 days
-duration_spend = 2 years
-duration_legal = 3 years
-fee_withdraw = KUDOS:0.00
-fee_deposit = KUDOS:0.00
-fee_refresh = KUDOS:0.00
-fee_refund = KUDOS:0.00
-rsa_keysize = 1024
-
-[coin_kudos_2]
-value = KUDOS:2
-duration_overlap = 5 minutes
-duration_withdraw = 7 days
-duration_spend = 2 years
-duration_legal = 3 years
-fee_withdraw = KUDOS:0.00
-fee_deposit = KUDOS:0.00
-fee_refresh = KUDOS:0.00
-fee_refund = KUDOS:0.00
-rsa_keysize = 1024
-
-[coin_kudos_4]
-value = KUDOS:4
-duration_overlap = 5 minutes
-duration_withdraw = 7 days
-duration_spend = 2 years
-duration_legal = 3 years
-fee_withdraw = KUDOS:0.00
-fee_deposit = KUDOS:0.00
-fee_refresh = KUDOS:0.00
-fee_refund = KUDOS:0.00
-rsa_keysize = 1024
-
-[coin_kudos_8]
-value = KUDOS:8
-duration_overlap = 5 minutes
-duration_withdraw = 7 days
-duration_spend = 2 years
-duration_legal = 3 years
-fee_withdraw = KUDOS:0.00
-fee_deposit = KUDOS:0.00
-fee_refresh = KUDOS:0.00
-fee_refund = KUDOS:0.00
-rsa_keysize = 1024
diff --git a/src/benchmark/test_benchmark_home/.config/taler/account.json 
b/src/benchmark/test_benchmark_home/.config/taler/account.json
deleted file mode 100644
index 0bfab15..0000000
--- a/src/benchmark/test_benchmark_home/.config/taler/account.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-  "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/test.json 
b/src/benchmark/test_benchmark_home/.config/taler/test.json
deleted file mode 100644
index eca3942..0000000
--- a/src/benchmark/test_benchmark_home/.config/taler/test.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-  "salt": 
"AZPRFVJ58NM6M7J5CZQPJAH3EW5DYM52AEZ9Y1C1ER3W94QV8D8TQKF6CK8MYQRA9QMSKDQTGZ306ZS9GQ0M6R01CJ20KPP49WFDZK8",
-  "name": "The exchange",
-  "account_number": 3,
-  "bank_url": "http://localhost:8082/";,
-  "type": "test",
-  "sig": 
"RPQXP9S4P8PQP7HEZQNRSZCT0ATNEP8GW0P5TPM34V5RX86FCD670V44R9NETSYDDKB8SZV7TKY9PAJYTY51D3VDWY9XXQ5BPFRXR28"
-}
diff --git 
a/src/benchmark/test_benchmark_home/.local/share/taler/exchange/offline-keys/master.priv
 
b/src/benchmark/test_benchmark_home/.local/share/taler/exchange/offline-keys/master.priv
deleted file mode 100644
index 3949269..0000000
--- 
a/src/benchmark/test_benchmark_home/.local/share/taler/exchange/offline-keys/master.priv
+++ /dev/null
@@ -1 +0,0 @@
-p�^�-�33��XX�!�\0q�����mU�_��
\ No newline at end of file

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



reply via email to

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