-move AML_THRESHOLD option to exchange
This commit is contained in:
parent
c9ed524bc3
commit
92df1cb1da
@ -6,10 +6,17 @@
|
|||||||
# This must be adjusted to your actual installation.
|
# This must be adjusted to your actual installation.
|
||||||
# MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
|
# MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
|
||||||
|
|
||||||
|
# Must be set to the threshold above which transactions
|
||||||
|
# are flagged for AML review.
|
||||||
|
# AML_THRESHOLD =
|
||||||
|
|
||||||
# Attribute encryption key for storing attributes encrypted
|
# Attribute encryption key for storing attributes encrypted
|
||||||
# in the database. Should be a high-entropy nonce.
|
# in the database. Should be a high-entropy nonce.
|
||||||
ATTRIBUTE_ENCRYPTION_KEY = SET_ME_PLEASE
|
ATTRIBUTE_ENCRYPTION_KEY = SET_ME_PLEASE
|
||||||
|
|
||||||
|
# Set to NO to disable tipping.
|
||||||
|
ENABLE_TIPPING = YES
|
||||||
|
|
||||||
# How long do we allow /keys to be cached at most? The actual
|
# How long do we allow /keys to be cached at most? The actual
|
||||||
# limit is the minimum of this value and the first expected
|
# limit is the minimum of this value and the first expected
|
||||||
# significant change in /keys based on the expiration times.
|
# significant change in /keys based on the expiration times.
|
||||||
|
@ -153,6 +153,11 @@ struct TALER_EXCHANGEDB_Plugin *TEH_plugin;
|
|||||||
*/
|
*/
|
||||||
char *TEH_currency;
|
char *TEH_currency;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Option set to #GNUNET_YES if tipping is enabled.
|
||||||
|
*/
|
||||||
|
int TEH_enable_tipping;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* What is the largest amount we allow a peer to
|
* What is the largest amount we allow a peer to
|
||||||
* merge into a reserve before always triggering
|
* merge into a reserve before always triggering
|
||||||
@ -1853,14 +1858,24 @@ exchange_serve_process_config (void)
|
|||||||
"CURRENCY");
|
"CURRENCY");
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
|
if (GNUNET_OK !=
|
||||||
|
GNUNET_config_get_amount (TEH_cfg,
|
||||||
|
"exchange",
|
||||||
|
"AML_THRESHOLD",
|
||||||
|
&TEH_aml_threshold))
|
||||||
|
{
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
|
"Need amount in section `exchange' under `AML_THRESHOLD'\n");
|
||||||
|
return GNUNET_SYSERR;
|
||||||
|
}
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
TALER_config_get_amount (TEH_cfg,
|
TALER_config_get_amount (TEH_cfg,
|
||||||
"taler",
|
"exchange",
|
||||||
"AML_THRESHOLD",
|
"ENABLE_TIPPING",
|
||||||
&TEH_aml_threshold))
|
&TEH_aml_threshold))
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
"Need amount in section `TALER' under `AML_THRESHOLD'\n");
|
"Need YES or NO in section `exchange' under `ENABLE_TIPPING'\n");
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
if (0 != strcmp (TEH_currency,
|
if (0 != strcmp (TEH_currency,
|
||||||
|
@ -7,13 +7,14 @@ TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/taler-system-runtime/
|
|||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
CURRENCY_ROUND_UNIT = EUR:0.01
|
CURRENCY_ROUND_UNIT = EUR:0.01
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[auditor]
|
[auditor]
|
||||||
TINY_AMOUNT = EUR:0.01
|
TINY_AMOUNT = EUR:0.01
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# Directory with our terms of service.
|
# Directory with our terms of service.
|
||||||
TERMS_DIR = ../../contrib/tos
|
TERMS_DIR = ../../contrib/tos
|
||||||
|
|
||||||
|
@ -17,9 +17,10 @@ DURATION = 14 days
|
|||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
CURRENCY_ROUND_UNIT = EUR:0.01
|
CURRENCY_ROUND_UNIT = EUR:0.01
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# The DB plugin to use
|
# The DB plugin to use
|
||||||
DB = postgres
|
DB = postgres
|
||||||
|
|
||||||
|
@ -17,9 +17,10 @@ DURATION = 14 days
|
|||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
CURRENCY_ROUND_UNIT = EUR:0.01
|
CURRENCY_ROUND_UNIT = EUR:0.01
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# The DB plugin to use
|
# The DB plugin to use
|
||||||
DB = postgres
|
DB = postgres
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ DURATION = 14 days
|
|||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
CURRENCY_ROUND_UNIT = EUR:0.01
|
CURRENCY_ROUND_UNIT = EUR:0.01
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[auditor]
|
[auditor]
|
||||||
BASE_URL = "http://localhost:8083/"
|
BASE_URL = "http://localhost:8083/"
|
||||||
@ -32,6 +31,7 @@ PUBLIC_KEY = XNYZPJJ6YPSQ4C6QPW120ACG9B5E5GBTTSYWXDMDB6G4X74TDBPG
|
|||||||
TINY_AMOUNT = EUR:0.01
|
TINY_AMOUNT = EUR:0.01
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# HTTP port the exchange listens to
|
# HTTP port the exchange listens to
|
||||||
PORT = 8081
|
PORT = 8081
|
||||||
|
@ -21,7 +21,6 @@ DURATION = 14 days
|
|||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
CURRENCY_ROUND_UNIT = EUR:0.01
|
CURRENCY_ROUND_UNIT = EUR:0.01
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[auditor]
|
[auditor]
|
||||||
BASE_URL = "http://localhost:8083/"
|
BASE_URL = "http://localhost:8083/"
|
||||||
@ -33,6 +32,7 @@ PUBLIC_KEY = XNYZPJJ6YPSQ4C6QPW120ACG9B5E5GBTTSYWXDMDB6G4X74TDBPG
|
|||||||
TINY_AMOUNT = EUR:0.01
|
TINY_AMOUNT = EUR:0.01
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# HTTP port the exchange listens to
|
# HTTP port the exchange listens to
|
||||||
PORT = 8081
|
PORT = 8081
|
||||||
|
@ -20,7 +20,6 @@ DURATION = 14 days
|
|||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
CURRENCY_ROUND_UNIT = EUR:0.01
|
CURRENCY_ROUND_UNIT = EUR:0.01
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[auditor]
|
[auditor]
|
||||||
BASE_URL = "http://localhost:8083/"
|
BASE_URL = "http://localhost:8083/"
|
||||||
@ -54,6 +53,8 @@ TIMEFRAME = 1d
|
|||||||
TERMS_ETAG = 0
|
TERMS_ETAG = 0
|
||||||
PRIVACY_ETAG = 0
|
PRIVACY_ETAG = 0
|
||||||
|
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# HTTP port the exchange listens to
|
# HTTP port the exchange listens to
|
||||||
PORT = 8081
|
PORT = 8081
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@ TALER_CACHE_HOME = $TALER_HOME/.cache/taler/
|
|||||||
[taler]
|
[taler]
|
||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[taler-exchange-secmod-eddsa]
|
[taler-exchange-secmod-eddsa]
|
||||||
OVERLAP_DURATION = 1 s
|
OVERLAP_DURATION = 1 s
|
||||||
@ -32,6 +31,9 @@ BASE_URL = "http://localhost:8083/"
|
|||||||
PORT = 8083
|
PORT = 8083
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# HTTP port the exchange listens to
|
# HTTP port the exchange listens to
|
||||||
PORT = 8081
|
PORT = 8081
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ DURATION = 14 days
|
|||||||
# Currency supported by the exchange (can only be one)
|
# Currency supported by the exchange (can only be one)
|
||||||
CURRENCY = EUR
|
CURRENCY = EUR
|
||||||
CURRENCY_ROUND_UNIT = EUR:0.01
|
CURRENCY_ROUND_UNIT = EUR:0.01
|
||||||
AML_THRESHOLD = EUR:1000000
|
|
||||||
|
|
||||||
[auditor]
|
[auditor]
|
||||||
BASE_URL = "http://localhost:8083/"
|
BASE_URL = "http://localhost:8083/"
|
||||||
@ -32,6 +31,7 @@ PORT = 8083
|
|||||||
TINY_AMOUNT = EUR:0.01
|
TINY_AMOUNT = EUR:0.01
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
|
AML_THRESHOLD = EUR:1000000
|
||||||
|
|
||||||
# HTTP port the exchange listens to
|
# HTTP port the exchange listens to
|
||||||
PORT = 8081
|
PORT = 8081
|
||||||
|
Loading…
Reference in New Issue
Block a user