From fdeb6301606b09ee68ca5cdc208a44f07fe50ce4 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Sat, 6 Apr 2019 12:55:13 +0200 Subject: Artificial 'now'. Getting to the point where "/keys" discards expired DKs due to the artificial 'now' given on the URL. --- src/exchange/taler-exchange-httpd_keystate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/exchange') diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index ad1883ba8..6cef785c4 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -730,7 +730,8 @@ reload_keys_denom_iter (void *cls, return GNUNET_OK; } - horizon = GNUNET_TIME_relative_to_absolute (TALER_EXCHANGE_conf_duration_provide ()); + horizon = GNUNET_TIME_absolute_add (rfc->now, + TALER_EXCHANGE_conf_duration_provide ()); start = GNUNET_TIME_absolute_ntoh (dki->issue.properties.start); if (start.abs_value_us > horizon.abs_value_us) { -- cgit v1.2.3