exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 28969f415eccb7791847e3945b8599140902db8b
parent 5c387b7d6ea1e7051193577337aa137fe83ec36d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 22 Oct 2022 00:07:00 +0200

-remove bogus tests

Diffstat:
Msrc/lib/exchange_api_common.c | 21+++++++++------------
Msrc/util/taler-exchange-secmod-rsa.c | 1-
2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c @@ -902,19 +902,16 @@ help_deposit (struct CoinHistoryParseContext *pc, GNUNET_break_op (0); return GNUNET_SYSERR; } - if (NULL != pc->dk) + /* check that deposit fee matches our expectations from /keys! */ + if ( (GNUNET_YES != + TALER_amount_cmp_currency (&deposit_fee, + &pc->dk->fees.deposit)) || + (0 != + TALER_amount_cmp (&deposit_fee, + &pc->dk->fees.deposit)) ) { - /* check that deposit fee matches our expectations from /keys! */ - if ( (GNUNET_YES != - TALER_amount_cmp_currency (&deposit_fee, - &pc->dk->fees.deposit)) || - (0 != - TALER_amount_cmp (&deposit_fee, - &pc->dk->fees.deposit)) ) - { - GNUNET_break_op (0); - return GNUNET_SYSERR; - } + GNUNET_break_op (0); + return GNUNET_SYSERR; } return GNUNET_YES; } diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c @@ -1630,7 +1630,6 @@ import_key (void *cls, GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "open", filename); - GNUNET_break (0 == close (fd)); return GNUNET_OK; } if (0 != fstat (fd,