From 18541a284b57ed7f0c110f084649eb292e603e63 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 1 Aug 2021 19:18:31 +0200 Subject: -allow 0 for refund deadline --- src/lib/exchange_api_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/exchange_api_common.c') diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index a564a367..da1400b9 100644 --- a/src/lib/exchange_api_common.c +++ b/src/lib/exchange_api_common.c @@ -527,8 +527,9 @@ TALER_EXCHANGE_verify_coin_history ( &dr.h_denom_pub), TALER_JSON_spec_absolute_time_nbo ("timestamp", &dr.wallet_timestamp), - TALER_JSON_spec_absolute_time_nbo ("refund_deadline", - &dr.refund_deadline), + GNUNET_JSON_spec_mark_optional ( + TALER_JSON_spec_absolute_time_nbo ("refund_deadline", + &dr.refund_deadline)), TALER_JSON_spec_amount_any_nbo ("deposit_fee", &dr.deposit_fee), GNUNET_JSON_spec_fixed_auto ("merchant_pub", -- cgit v1.2.3