-fix up config
This commit is contained in:
parent
ea47fb40c0
commit
cd45ba408a
@ -16,6 +16,12 @@ BASE_URL="http://localhost:8081/"
|
|||||||
AGGREGATOR_SHARD_SIZE=67108864
|
AGGREGATOR_SHARD_SIZE=67108864
|
||||||
WIREWATCH_IDLE_SLEEP_INTERVAL=5 ms
|
WIREWATCH_IDLE_SLEEP_INTERVAL=5 ms
|
||||||
|
|
||||||
|
[exchangedb-postgres]
|
||||||
|
CONFIG="postgres:///talercheck"
|
||||||
|
|
||||||
|
[exchange-offline]
|
||||||
|
MASTER_PRIV_FILE=${TALER_DATA_HOME}/exchange/offline-keys/master.priv
|
||||||
|
|
||||||
[taler-exchange-secmod-rsa]
|
[taler-exchange-secmod-rsa]
|
||||||
LOOKAHEAD_SIGN="1 d"
|
LOOKAHEAD_SIGN="1 d"
|
||||||
|
|
||||||
@ -26,6 +32,27 @@ LOOKAHEAD_SIGN="1 d"
|
|||||||
DURATION="2 d"
|
DURATION="2 d"
|
||||||
LOOKAHEAD_SIGN="1 d"
|
LOOKAHEAD_SIGN="1 d"
|
||||||
|
|
||||||
|
# account-2 is suitable for fakebank
|
||||||
|
[exchange-account-1]
|
||||||
|
PAYTO_URI = "payto://x-taler-bank/localhost/42?receiver-name=42"
|
||||||
|
ENABLE_DEBIT = YES
|
||||||
|
ENABLE_CREDIT = YES
|
||||||
|
|
||||||
|
[exchange-accountcredentials-1]
|
||||||
|
WIRE_GATEWAY_URL = "http://localhost:8082/42/"
|
||||||
|
|
||||||
|
# account-2 is suitable for libeufin
|
||||||
|
[exchange-account-2]
|
||||||
|
ENABLE_DEBIT = YES
|
||||||
|
ENABLE_CREDIT = YES
|
||||||
|
|
||||||
|
[exchange-accountcredentials-2]
|
||||||
|
WIRE_GATEWAY_AUTH_METHOD = basic
|
||||||
|
USERNAME = Exchange
|
||||||
|
PASSWORD = x
|
||||||
|
WIRE_GATEWAY_URL = "http://localhost:8082/2/"
|
||||||
|
|
||||||
|
|
||||||
# Trust local exchange for "EUR" currency
|
# Trust local exchange for "EUR" currency
|
||||||
[merchant-exchange-benchmark]
|
[merchant-exchange-benchmark]
|
||||||
EXCHANGE_BASE_URL = http://localhost:8081/
|
EXCHANGE_BASE_URL = http://localhost:8081/
|
||||||
@ -35,9 +62,6 @@ MASTER_KEY=98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
|
|||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
|
|
||||||
|
|
||||||
[exchangedb-postgres]
|
|
||||||
CONFIG="postgres:///talercheck"
|
|
||||||
|
|
||||||
[merchantdb-postgres]
|
[merchantdb-postgres]
|
||||||
CONFIG="postgres:///talercheck"
|
CONFIG="postgres:///talercheck"
|
||||||
|
|
||||||
@ -47,26 +71,15 @@ CONFIG="postgres:///talercheck"
|
|||||||
[syncdb-postgres]
|
[syncdb-postgres]
|
||||||
CONFIG="postgres:///talercheck"
|
CONFIG="postgres:///talercheck"
|
||||||
|
|
||||||
[exchange-offline]
|
|
||||||
MASTER_PRIV_FILE=${TALER_DATA_HOME}/exchange/offline-keys/master.priv
|
|
||||||
|
|
||||||
[bank]
|
[bank]
|
||||||
HTTP_PORT=8082
|
HTTP_PORT=8082
|
||||||
SERVE=http
|
SERVE=http
|
||||||
MAX_DEBT=EUR:100000000000.0
|
|
||||||
MAX_DEBT_BANK=EUR:1000000000000000.0
|
|
||||||
DATABASE=bank-db.sqlite3
|
|
||||||
|
|
||||||
[libeufin-nexus]
|
[libeufin-nexus]
|
||||||
DB_CONNECTION="jdbc:postgresql://localhost/talercheck?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory$FactoryArg&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432"
|
DB_CONNECTION="jdbc:postgresql://localhost/talercheck?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory$FactoryArg&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432"
|
||||||
#DB_CONNECTION="jdbc:sqlite:libeufin-nexus.sqlite3"
|
|
||||||
|
|
||||||
[libeufin-sandbox]
|
[libeufin-sandbox]
|
||||||
DB_CONNECTION="jdbc:postgresql://localhost/talercheck?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory$FactoryArg&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432"
|
DB_CONNECTION="jdbc:postgresql://localhost/talercheck?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory$FactoryArg&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432"
|
||||||
#DB_CONNECTION="jdbc:sqlite:libeufin-sandbox.sqlite3"
|
|
||||||
|
|
||||||
[auditor]
|
[auditor]
|
||||||
BASE_URL="http://localhost:8083/"
|
BASE_URL="http://localhost:8083/"
|
||||||
|
|
||||||
[benchmark]
|
|
||||||
USER_PAYTO_URI="payto://x-taler-bank/localhost:8082/42?receiver-name=user42"
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
p<EFBFBD>^<5E>-<2D>33<33><33>XX<>!<04>\0q<30><71><EFBFBD><EFBFBD><18>mU<6D>_<EFBFBD><5F>
|
|
@ -849,6 +849,9 @@ build_wire_state (void)
|
|||||||
wire_method = TALER_payto_get_method (payto_uri);
|
wire_method = TALER_payto_get_method (payto_uri);
|
||||||
if (NULL == wire_method)
|
if (NULL == wire_method)
|
||||||
{
|
{
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
|
"No wire method in `%s'\n",
|
||||||
|
payto_uri);
|
||||||
wsh->http_status = MHD_HTTP_INTERNAL_SERVER_ERROR;
|
wsh->http_status = MHD_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
wsh->wire_reply
|
wsh->wire_reply
|
||||||
= TALER_MHD_make_error (
|
= TALER_MHD_make_error (
|
||||||
@ -888,26 +891,21 @@ build_wire_state (void)
|
|||||||
GNUNET_CRYPTO_hash_context_abort (hc);
|
GNUNET_CRYPTO_hash_context_abort (hc);
|
||||||
return wsh;
|
return wsh;
|
||||||
}
|
}
|
||||||
if (0 == json_array_size (ac.a))
|
if (0 != json_array_size (ac.a))
|
||||||
{
|
{
|
||||||
json_decref (ac.a);
|
wsh->cache_expiration
|
||||||
json_decref (wire_accounts_array);
|
= GNUNET_TIME_absolute_min (ac.max_seen,
|
||||||
json_decref (wire_fee_object);
|
|
||||||
wsh->http_status = MHD_HTTP_INTERNAL_SERVER_ERROR;
|
|
||||||
wsh->wire_reply
|
|
||||||
= TALER_MHD_make_error (TALER_EC_EXCHANGE_WIRE_FEES_NOT_CONFIGURED,
|
|
||||||
wire_method);
|
|
||||||
GNUNET_free (wire_method);
|
|
||||||
GNUNET_CRYPTO_hash_context_abort (hc);
|
|
||||||
return wsh;
|
|
||||||
}
|
|
||||||
wsh->cache_expiration = GNUNET_TIME_absolute_min (ac.max_seen,
|
|
||||||
wsh->cache_expiration);
|
wsh->cache_expiration);
|
||||||
GNUNET_assert (0 ==
|
GNUNET_assert (0 ==
|
||||||
json_object_set_new (wire_fee_object,
|
json_object_set_new (wire_fee_object,
|
||||||
wire_method,
|
wire_method,
|
||||||
ac.a));
|
ac.a));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
json_decref (ac.a);
|
||||||
|
}
|
||||||
|
}
|
||||||
GNUNET_free (wire_method);
|
GNUNET_free (wire_method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2438,6 +2436,11 @@ create_krd (struct TEH_KeyStateHandle *ksh,
|
|||||||
json_t *keys;
|
json_t *keys;
|
||||||
|
|
||||||
wsh = get_wire_state ();
|
wsh = get_wire_state ();
|
||||||
|
if (MHD_HTTP_OK != wsh->http_status)
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
return GNUNET_SYSERR;
|
||||||
|
}
|
||||||
GNUNET_assert (! GNUNET_TIME_absolute_is_zero (
|
GNUNET_assert (! GNUNET_TIME_absolute_is_zero (
|
||||||
last_cherry_pick_date.abs_time));
|
last_cherry_pick_date.abs_time));
|
||||||
GNUNET_assert (NULL != signkeys);
|
GNUNET_assert (NULL != signkeys);
|
||||||
|
@ -28,21 +28,21 @@ PORT = 8081
|
|||||||
MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
|
MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
|
||||||
DB = postgres
|
DB = postgres
|
||||||
BASE_URL = "http://localhost:8081/"
|
BASE_URL = "http://localhost:8081/"
|
||||||
EXPIRE_SHARD_SIZE = 300 ms
|
EXPIRE_SHARD_SIZE ="300 ms"
|
||||||
EXPIRE_IDLE_SLEEP_INTERVAL = 1 s
|
EXPIRE_IDLE_SLEEP_INTERVAL ="1 s"
|
||||||
|
|
||||||
[exchangedb-postgres]
|
[exchangedb-postgres]
|
||||||
CONFIG = "postgres:///talercheck"
|
CONFIG = "postgres:///talercheck"
|
||||||
|
|
||||||
[taler-exchange-secmod-cs]
|
[taler-exchange-secmod-cs]
|
||||||
LOOKAHEAD_SIGN = 24 days
|
LOOKAHEAD_SIGN = "24 days"
|
||||||
|
|
||||||
[taler-exchange-secmod-rsa]
|
[taler-exchange-secmod-rsa]
|
||||||
LOOKAHEAD_SIGN = 24 days
|
LOOKAHEAD_SIGN = "24 days"
|
||||||
|
|
||||||
[taler-exchange-secmod-eddsa]
|
[taler-exchange-secmod-eddsa]
|
||||||
LOOKAHEAD_SIGN = 24 days
|
LOOKAHEAD_SIGN = "24 days"
|
||||||
DURATION = 14 days
|
DURATION = "14 days"
|
||||||
|
|
||||||
|
|
||||||
[exchange-account-1]
|
[exchange-account-1]
|
||||||
|
Loading…
Reference in New Issue
Block a user