add KYC_AML_TRIGGER option (not implemented)
This commit is contained in:
parent
30b953ff0f
commit
e371d76cfe
@ -153,6 +153,11 @@ struct TALER_EXCHANGEDB_Plugin *TEH_plugin;
|
|||||||
*/
|
*/
|
||||||
char *TEH_currency;
|
char *TEH_currency;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the KYC-AML-trigger evaluation binary.
|
||||||
|
*/
|
||||||
|
char *TEH_kyc_aml_trigger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Option set to #GNUNET_YES if tipping is enabled.
|
* Option set to #GNUNET_YES if tipping is enabled.
|
||||||
*/
|
*/
|
||||||
@ -1849,6 +1854,17 @@ exchange_serve_process_config (void)
|
|||||||
"valid relative time expected");
|
"valid relative time expected");
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
|
if (GNUNET_OK !=
|
||||||
|
GNUNET_CONFIGURATION_get_value_string (TEH_cfg,
|
||||||
|
"exchange",
|
||||||
|
"KYC_AML_TRIGGER",
|
||||||
|
&TEH_kyc_aml_trigger))
|
||||||
|
{
|
||||||
|
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
||||||
|
"exchange",
|
||||||
|
"KYC_AML_TRIGGER");
|
||||||
|
return GNUNET_SYSERR;
|
||||||
|
}
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
TALER_config_get_currency (TEH_cfg,
|
TALER_config_get_currency (TEH_cfg,
|
||||||
&TEH_currency))
|
&TEH_currency))
|
||||||
|
@ -102,6 +102,11 @@ extern struct TALER_EXCHANGEDB_Plugin *TEH_plugin;
|
|||||||
*/
|
*/
|
||||||
extern char *TEH_currency;
|
extern char *TEH_currency;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the KYC-AML-trigger evaluation binary.
|
||||||
|
*/
|
||||||
|
extern char *TEH_kyc_aml_trigger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
@ -251,7 +251,7 @@ child_done_cb (void *cls,
|
|||||||
long unsigned int exit_code)
|
long unsigned int exit_code)
|
||||||
{
|
{
|
||||||
struct TALER_JSON_ExternalConversion *ec = cls;
|
struct TALER_JSON_ExternalConversion *ec = cls;
|
||||||
json_t *j;
|
json_t *j = NULL;
|
||||||
json_error_t err;
|
json_error_t err;
|
||||||
|
|
||||||
ec->cwh = NULL;
|
ec->cwh = NULL;
|
||||||
@ -269,16 +269,19 @@ child_done_cb (void *cls,
|
|||||||
}
|
}
|
||||||
GNUNET_OS_process_destroy (ec->helper);
|
GNUNET_OS_process_destroy (ec->helper);
|
||||||
ec->helper = NULL;
|
ec->helper = NULL;
|
||||||
j = json_loadb (ec->read_buf,
|
if (0 != ec->read_pos)
|
||||||
ec->read_pos,
|
|
||||||
JSON_REJECT_DUPLICATES,
|
|
||||||
&err);
|
|
||||||
if (NULL == j)
|
|
||||||
{
|
{
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
|
j = json_loadb (ec->read_buf,
|
||||||
"Failed to parse JSON from helper at %d: %s\n",
|
ec->read_pos,
|
||||||
err.position,
|
JSON_REJECT_DUPLICATES,
|
||||||
err.text);
|
&err);
|
||||||
|
if (NULL == j)
|
||||||
|
{
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
|
||||||
|
"Failed to parse JSON from helper at %d: %s\n",
|
||||||
|
err.position,
|
||||||
|
err.text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ec->cb (ec->cb_cls,
|
ec->cb (ec->cb_cls,
|
||||||
type,
|
type,
|
||||||
|
Loading…
Reference in New Issue
Block a user