merchant

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

commit 8f9f0bbc10e3a5aa211d8448a72bad2007f65bf6
parent 02d8696300eed7f3beda229d14ecc92903471bc0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 29 Jun 2026 00:22:45 +0200

turn checked invariant into hard assert

Diffstat:
Msrc/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c | 19+------------------
1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c @@ -3440,26 +3440,9 @@ find_valid_input_tokens ( NULL)); return GNUNET_NO; } - num_validated++; } - - if (num_validated != expected_num) - { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Expected %d tokens for family %s, but found %d\n", - expected_num, - family->slug, - num_validated); - GNUNET_break_op (0); - pay_end (pc, - TALER_MHD_reply_with_error ( - pc->connection, - MHD_HTTP_BAD_REQUEST, - TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_COUNT_MISMATCH, - NULL)); - return GNUNET_NO; - } + GNUNET_assert (num_validated == expected_num); return GNUNET_YES; }