summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 12:59:50 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 12:59:50 +0100
commit385b3e77dfa1b6bbaee5d0ec9da9bcbd69e91b70 (patch)
tree61550b547a56179e6abac9bee3502ecc5c537fa8 /src/lib/exchange_api_common.c
parent325aaddbd6612c3baa56d01f6777faf77d082588 (diff)
downloadexchange-385b3e77dfa1b6bbaee5d0ec9da9bcbd69e91b70.tar.gz
exchange-385b3e77dfa1b6bbaee5d0ec9da9bcbd69e91b70.tar.bz2
exchange-385b3e77dfa1b6bbaee5d0ec9da9bcbd69e91b70.zip
tighten formatting rules
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 2e13b678..2c7923ce 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,
for the exchange to lie here, so not checking is probably OK
(an auditor ought to check, though). Then again, we similarly
had no reason to check the merchant's signature (other than a
- well-formendess check). */
- /* TODO: check that deposit fee and coin value match
- our expectations from /keys! */
- add = GNUNET_NO;
+ well-formendess check). *//* TODO: check that deposit fee and coin value match
+ our expectations from /keys! */add = GNUNET_NO;
}
else if (0 == strcasecmp (type,
"PAYBACK"))
@@ -297,8 +295,7 @@ TALER_EXCHANGE_verify_coin_history (const char *currency,
However, for the implementation, we first *add* up all of
these negative amounts, as we might get refunds before
deposits from a semi-evil exchange. Then, at the end, we do
- the subtraction by calculating "total = total - rtotal" */
- GNUNET_assert (GNUNET_NO == add);
+ the subtraction by calculating "total = total - rtotal" */GNUNET_assert (GNUNET_NO == add);
if (GNUNET_OK !=
TALER_amount_add (&rtotal,
&rtotal,
@@ -353,4 +350,5 @@ TALER_EXCHANGE_get_exchange_signing_key_info (const struct
return NULL;
}
+
/* end of exchange_api_common.c */