From 63f28f5c678c01cc40d296c13354d5f1079af672 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Dec 2023 00:22:53 +0800 Subject: -note on forgettable --- src/backend/taler-merchant-httpd_private-post-orders.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c') diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 08522f28..ca35774d 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -1810,6 +1810,13 @@ parse_order (struct OrderContext *oc) oc->parse_order.merchant_pub = oc->hc->instance->merchant_pub; /* TODO: Not sure yet how to properly handle this in the refactored code */ + /* CG: Maybe the best answer is to do nothing here, and instead change + the TALER_JSON_contract_seed_forgettable() to take two arguments: + the (original) oc->order *and* the final (assembled) order. Then + do the (recursive) traversal over both objects and modify the + assembled order based on the fields in the (read-only) original + oc->order. Anyway, let me sleep over it, maybe I'll hack it up + tomorrow ;-). */ // if (GNUNET_OK != // TALER_JSON_contract_seed_forgettable (oc->order)) // { -- cgit v1.2.3