summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-07 22:24:49 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-07 22:24:49 +0200
commitf2e2c5c9d81ede958bfdbddbab80d7a9a9ed4cb2 (patch)
treeb3ed62cf4f233c8980b5c2ab8a26484955983e81 /src/lib
parent937524940a9994340ccaf8c200bbac0b59da6cd0 (diff)
downloadexchange-f2e2c5c9d81ede958bfdbddbab80d7a9a9ed4cb2.tar.gz
exchange-f2e2c5c9d81ede958bfdbddbab80d7a9a9ed4cb2.tar.bz2
exchange-f2e2c5c9d81ede958bfdbddbab80d7a9a9ed4cb2.zip
-fix refund check regression
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_refund.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c
index b1cd7c843..2b0f5b034 100644
--- a/src/lib/exchange_api_refund.c
+++ b/src/lib/exchange_api_refund.c
@@ -444,20 +444,14 @@ verify_conflict_history_ok (struct TALER_EXCHANGE_RefundHandle *rh,
else
{
rtotal = rh->refund_amount;
+ have_refund = true;
}
- if ( (have_refund) && (! have_deposit) )
+ if (! have_deposit)
{
GNUNET_break (0);
GNUNET_JSON_parse_free (spec);
return GNUNET_SYSERR;
}
- if (! (have_refund && have_deposit))
- {
- /* need both for a refund-deposit conflict proof */
- GNUNET_break (0);
- GNUNET_JSON_parse_free (spec);
- return GNUNET_SYSERR;
- }
if (-1 != TALER_amount_cmp (&dtotal,
&rtotal))
{
@@ -649,6 +643,9 @@ handle_refund_finished (void *cls,
j))
{
GNUNET_break (0);
+ json_dumpf (j,
+ stderr,
+ JSON_INDENT (2));
hr.http_status = 0;
hr.ec = TALER_EC_EXCHANGE_REFUND_INVALID_FAILURE_PROOF_BY_EXCHANGE;
hr.hint = "conflict information provided by exchange is invalid";