diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-16 19:24:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-16 19:24:08 +0200 |
commit | d1992e59839e49c09ff260588b99cb16ce2942d9 (patch) | |
tree | dfa94bf7368f6d135bb489c52af77724b8483ecf /src/exchange/taler-exchange-httpd_keys.c | |
parent | 95c71daf5ee1954342490feabb6ec6220fa3f3e8 (diff) | |
download | exchange-d1992e59839e49c09ff260588b99cb16ce2942d9.tar.gz exchange-d1992e59839e49c09ff260588b99cb16ce2942d9.tar.bz2 exchange-d1992e59839e49c09ff260588b99cb16ce2942d9.zip |
new configuration option: wallet balance threshold
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index 0e0005305..99c727450 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -1473,6 +1473,18 @@ create_krd (struct TEH_KeyStateHandle *ksh, GNUNET_JSON_pack_data_auto ("eddsa_sig", &exchange_sig)); GNUNET_assert (NULL != keys); + if ( (TEH_KYC_NONE != TEH_kyc_config.mode) && + (GNUNET_OK == + TALER_amount_is_valid (&TEH_kyc_config.wallet_balance_limit)) ) + { + GNUNET_assert ( + 0 == + json_object_set_new ( + keys, + "wallet_balance_limit_without_kyc", + TALER_JSON_from_amount ( + &TEH_kyc_config.wallet_balance_limit))); + } { char *keys_json; |