summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-13 23:08:22 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-13 23:08:22 +0100
commit4761845471b9df042bc9823197a26c6851a6b302 (patch)
tree9887d26e2d02eb8243b626b27c5fe2d2f559e06d /src/backend
parentf3a39377229809c0f10964a36d465a268f80d6a5 (diff)
downloadmerchant-4761845471b9df042bc9823197a26c6851a6b302.tar.gz
merchant-4761845471b9df042bc9823197a26c6851a6b302.tar.bz2
merchant-4761845471b9df042bc9823197a26c6851a6b302.zip
-add assertions
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.c3
1 files changed, 2 insertions, 1 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
index fb8b9dd5..a5d89f86 100644
--- 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;
{