fix some auditor assertions (see #6106)
This commit is contained in:
parent
a66b9e1b8a
commit
176113a62a
@ -786,9 +786,11 @@ get_denomination_info_by_hash (const struct GNUNET_HashCode *dh,
|
|||||||
*issue = i;
|
*issue = i;
|
||||||
return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
|
return GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
|
||||||
}
|
}
|
||||||
/* This should be impossible; hard error */
|
/* We found more keys, but not the denomination we are looking for :-( */
|
||||||
GNUNET_break (0);
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
return GNUNET_DB_STATUS_HARD_ERROR;
|
"Denomination %s not found\n",
|
||||||
|
TALER_B2S (dh));
|
||||||
|
return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2927,13 +2929,12 @@ check_wire_out_cb (void *cls,
|
|||||||
¤cy_round_unit));
|
¤cy_round_unit));
|
||||||
|
|
||||||
/* Calculate the exchange's gain as the fees plus rounding differences! */
|
/* Calculate the exchange's gain as the fees plus rounding differences! */
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_SYSERR ==
|
||||||
TALER_amount_subtract (&exchange_gain,
|
TALER_amount_subtract (&exchange_gain,
|
||||||
&wcc.total_deposits,
|
&wcc.total_deposits,
|
||||||
&final_amount))
|
&final_amount))
|
||||||
{
|
{
|
||||||
GNUNET_break (0);
|
GNUNET_break (0);
|
||||||
// FIXME: we should report an arithmetic error here!
|
|
||||||
ac->qs = GNUNET_DB_STATUS_HARD_ERROR;
|
ac->qs = GNUNET_DB_STATUS_HARD_ERROR;
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user