summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-01 19:18:31 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-01 19:18:35 +0200
commit18541a284b57ed7f0c110f084649eb292e603e63 (patch)
treee00abc102486ad4164742ea3205cb04d8419a51f /src/lib/exchange_api_common.c
parentac96733695ecc0ebe8e582e3230f2a95c89712bc (diff)
downloadexchange-18541a284b57ed7f0c110f084649eb292e603e63.tar.gz
exchange-18541a284b57ed7f0c110f084649eb292e603e63.tar.bz2
exchange-18541a284b57ed7f0c110f084649eb292e603e63.zip
-allow 0 for refund deadline
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r--src/lib/exchange_api_common.c5
1 files changed, 3 insertions, 2 deletions
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",