-remove bogus tests

This commit is contained in:
Christian Grothoff 2022-10-22 00:07:00 +02:00
parent 5c387b7d6e
commit 28969f415e
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 9 additions and 13 deletions

View File

@ -902,19 +902,16 @@ help_deposit (struct CoinHistoryParseContext *pc,
GNUNET_break_op (0); GNUNET_break_op (0);
return GNUNET_SYSERR; 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! */ GNUNET_break_op (0);
if ( (GNUNET_YES != return GNUNET_SYSERR;
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;
}
} }
return GNUNET_YES; return GNUNET_YES;
} }

View File

@ -1630,7 +1630,6 @@ import_key (void *cls,
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
"open", "open",
filename); filename);
GNUNET_break (0 == close (fd));
return GNUNET_OK; return GNUNET_OK;
} }
if (0 != fstat (fd, if (0 != fstat (fd,