From 5c71c3e70e4ff608889b41cd1379e298766c9d31 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 2 Jan 2019 12:08:42 +0100 Subject: likely fix fo #5136/c13438 --- src/exchange-lib/exchange_api_handle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/exchange-lib/exchange_api_handle.c') diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c index f88d889d..47b98438 100644 --- a/src/exchange-lib/exchange_api_handle.c +++ b/src/exchange-lib/exchange_api_handle.c @@ -456,7 +456,7 @@ parse_json_auditor (struct TALER_EXCHANGE_AuditorInformation *auditor, } if (NULL == dk) { - GNUNET_break_op (0); /* FAILS: #5136 */ + GNUNET_break_op (0); continue; } if (check_sigs) @@ -1303,6 +1303,8 @@ TALER_EXCHANGE_serialize_data (struct TALER_EXCHANGE_Handle *exchange) const struct TALER_EXCHANGE_DenomPublicKey *dk = &kd->denom_keys[adi->denom_key_offset]; json_t *k; + if (now.abs_value_us > dk->expire_deposit.abs_value_us) + continue; /* skip auditor signatures for denomination keys that have expired */ GNUNET_assert (adi->denom_key_offset < kd->num_denom_keys); k = json_pack ("{s:o, s:o}", "denom_pub_h", -- cgit v1.2.3