aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_kyc-wallet.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-12-06 13:02:54 +0100
committerChristian Grothoff <christian@grothoff.org>2022-12-06 13:02:54 +0100
commit21959eebd2256a3fb72173488cf366868179ee13 (patch)
tree3804cebf03db618cce5c8bb25d631fb05527e5c3 /src/exchange/taler-exchange-httpd_kyc-wallet.c
parent9e4ac84b6eed7cc622d041c396bc460ce7e1bf07 (diff)
fix FIXME: sign also over balance during account-setup
Diffstat (limited to 'src/exchange/taler-exchange-httpd_kyc-wallet.c')
-rw-r--r--src/exchange/taler-exchange-httpd_kyc-wallet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-wallet.c b/src/exchange/taler-exchange-httpd_kyc-wallet.c
index 81acde4c..1111b678 100644
--- a/src/exchange/taler-exchange-httpd_kyc-wallet.c
+++ b/src/exchange/taler-exchange-httpd_kyc-wallet.c
@@ -164,8 +164,6 @@ TEH_handler_kyc_wallet (
&reserve_sig),
GNUNET_JSON_spec_fixed_auto ("reserve_pub",
&reserve_pub),
- // FIXME: add balance threshold crossed to the request
- // to spec and client API!
TALER_JSON_spec_amount ("balance",
TEH_currency,
&krc.balance),
@@ -184,10 +182,9 @@ TEH_handler_kyc_wallet (
return MHD_YES; /* failure */
TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_EDDSA]++;
- // FIXME: add balance threshold crossed to
- // what the wallet signs over!
if (GNUNET_OK !=
TALER_wallet_account_setup_verify (&reserve_pub,
+ &krc.balance,
&reserve_sig))
{
GNUNET_break_op (0);