commit 80e908cd4d88014129af0455a828a4d0977719f4
parent 3529296d44f4c422a44bb3578eafd907247b40da
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 2 May 2026 19:44:36 +0200
properly initialize max_pickup_duration from template, default to FOREVER as per spec
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/backend/paivana-httpd_templates.c b/src/backend/paivana-httpd_templates.c
@@ -358,6 +358,10 @@ parse_template (struct Template *t,
GNUNET_JSON_spec_string ("website_regex",
®ex),
NULL),
+ GNUNET_JSON_spec_mark_optional (
+ GNUNET_JSON_spec_relative_time ("max_pickup_duration",
+ &t->max_pickup_delay),
+ NULL),
GNUNET_JSON_spec_end ()
};
const char *en;
@@ -478,7 +482,7 @@ check_templates (
t = GNUNET_new (struct Template);
t->template_id = GNUNET_strdup (te->template_id);
- t->max_pickup_delay = GNUNET_TIME_UNIT_HOURS;
+ t->max_pickup_delay = GNUNET_TIME_UNIT_FOREVER_REL;
t->gt = TALER_MERCHANT_get_private_template_create (PH_ctx,
PH_merchant_base_url,
t->template_id);