summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_refund.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-05-25 21:34:18 +0200
committerChristian Grothoff <christian@grothoff.org>2021-05-25 21:34:18 +0200
commit068068f40fc97f09525aaccf560a1be352abd159 (patch)
treeb4331505e2c538d591a755352aaeee912d6cac6f /src/exchange/taler-exchange-httpd_refund.c
parent0d1ab614c06f60f79de75a0f2ec30c33a69820dd (diff)
downloadexchange-068068f40fc97f09525aaccf560a1be352abd159.tar.gz
exchange-068068f40fc97f09525aaccf560a1be352abd159.tar.bz2
exchange-068068f40fc97f09525aaccf560a1be352abd159.zip
return signed error message with HTTP_GONE status if denomination is not currently valid for specified operation (#6889)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refund.c')
-rw-r--r--src/exchange/taler-exchange-httpd_refund.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/exchange/taler-exchange-httpd_refund.c b/src/exchange/taler-exchange-httpd_refund.c
index 56d987d94..d0865dd8e 100644
--- a/src/exchange/taler-exchange-httpd_refund.c
+++ b/src/exchange/taler-exchange-httpd_refund.c
@@ -461,17 +461,6 @@ verify_and_execute_refund (struct MHD_Connection *connection,
GNUNET_break (0);
return mret;
}
-
- if (GNUNET_TIME_absolute_get ().abs_value_us >=
- dk->meta.expire_deposit.abs_value_us)
- {
- /* This denomination is past the expiration time for deposits, and thus refunds */
- return TALER_MHD_reply_with_error (
- connection,
- MHD_HTTP_GONE,
- TALER_EC_EXCHANGE_GENERIC_DENOMINATION_EXPIRED,
- NULL);
- }
refund->details.refund_fee = dk->meta.fee_refund;
}