diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-06 12:55:13 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-06 12:55:13 +0200 |
commit | fdeb6301606b09ee68ca5cdc208a44f07fe50ce4 (patch) | |
tree | bb78b958b6c8e51acb32eb203be25740cbffada2 /src/exchange | |
parent | 8655a40ad72723c6968a9e99b00d505164699829 (diff) | |
download | exchange-fdeb6301606b09ee68ca5cdc208a44f07fe50ce4.tar.gz exchange-fdeb6301606b09ee68ca5cdc208a44f07fe50ce4.tar.bz2 exchange-fdeb6301606b09ee68ca5cdc208a44f07fe50ce4.zip |
Artificial 'now'.
Getting to the point where "/keys" discards expired
DKs due to the artificial 'now' given on the URL.
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |