merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 3694bff78bcb41c9ce545576a8d44ec617da5ad6
parent 8d25278cbdb7f6af73c1fe295e069526e0bded62
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  1 Apr 2021 10:58:46 +0200

warn, do not assert

Diffstat:
Msrc/backend/taler-merchant-httpd_private-get-orders-ID.c | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -928,7 +928,9 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, strcasecmp (TMH_currency, gorc->contract_amount.currency)) { - GNUNET_break (0); + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Currency `%s' of contract does not match our configuration!\n", + gorc->contract_amount.currency); return TALER_MHD_reply_with_error ( connection, MHD_HTTP_INTERNAL_SERVER_ERROR, @@ -1061,7 +1063,8 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, if ( (! paid) && (! order_only) ) { - if (0 != GNUNET_TIME_absolute_get_remaining (gorc->sc.long_poll_timeout).rel_value_us) + if (0 != GNUNET_TIME_absolute_get_remaining ( + gorc->sc.long_poll_timeout).rel_value_us) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Suspending GET /private/orders/%s\n", @@ -1115,7 +1118,8 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, } if ( (! paid) && - (0 != GNUNET_TIME_absolute_get_remaining (gorc->sc.long_poll_timeout).rel_value_us) ) + (0 != GNUNET_TIME_absolute_get_remaining ( + gorc->sc.long_poll_timeout).rel_value_us) ) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Suspending GET /private/orders/%s\n",