commit 4761845471b9df042bc9823197a26c6851a6b302 parent f3a39377229809c0f10964a36d465a268f80d6a5 Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 13 Jan 2024 23:08:22 +0100 -add assertions Diffstat:
| M | src/backend/taler-merchant-httpd_private-get-orders-ID.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -375,7 +375,6 @@ struct GetOrderRequestContext */ bool order_only; - /** * Set to true if this payment has been refunded and * some refunds remain to be picked up by the wallet. @@ -628,6 +627,8 @@ phase_fetch_contract (struct GetOrderRequestContext *gorc) gorc->phase++; return; } + GNUNET_assert (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs); + GNUNET_assert (! gorc->paid); /* No contract, only order, fetch from orders table */ gorc->order_only = true; {