aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r--src/lib/exchange_api_common.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c
index 2e13b678e..2c7923cef 100644
--- a/src/lib/exchange_api_common.c
+++ b/src/lib/exchange_api_common.c
@@ -224,10 +224,8 @@ TALER_EXCHANGE_verify_coin_history (const char *currency,
224 for the exchange to lie here, so not checking is probably OK 224 for the exchange to lie here, so not checking is probably OK
225 (an auditor ought to check, though). Then again, we similarly 225 (an auditor ought to check, though). Then again, we similarly
226 had no reason to check the merchant's signature (other than a 226 had no reason to check the merchant's signature (other than a
227 well-formendess check). */ 227 well-formendess check). *//* TODO: check that deposit fee and coin value match
228 /* TODO: check that deposit fee and coin value match 228 our expectations from /keys! */add = GNUNET_NO;
229 our expectations from /keys! */
230 add = GNUNET_NO;
231 } 229 }
232 else if (0 == strcasecmp (type, 230 else if (0 == strcasecmp (type,
233 "PAYBACK")) 231 "PAYBACK"))
@@ -297,8 +295,7 @@ TALER_EXCHANGE_verify_coin_history (const char *currency,
297 However, for the implementation, we first *add* up all of 295 However, for the implementation, we first *add* up all of
298 these negative amounts, as we might get refunds before 296 these negative amounts, as we might get refunds before
299 deposits from a semi-evil exchange. Then, at the end, we do 297 deposits from a semi-evil exchange. Then, at the end, we do
300 the subtraction by calculating "total = total - rtotal" */ 298 the subtraction by calculating "total = total - rtotal" */GNUNET_assert (GNUNET_NO == add);
301 GNUNET_assert (GNUNET_NO == add);
302 if (GNUNET_OK != 299 if (GNUNET_OK !=
303 TALER_amount_add (&rtotal, 300 TALER_amount_add (&rtotal,
304 &rtotal, 301 &rtotal,
@@ -353,4 +350,5 @@ TALER_EXCHANGE_get_exchange_signing_key_info (const struct
353 return NULL; 350 return NULL;
354} 351}
355 352
353
356/* end of exchange_api_common.c */ 354/* end of exchange_api_common.c */