[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -use new GNUNET_TIME_relative_is
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -use new GNUNET_TIME_relative_is_zero API |
Date: |
Sat, 07 Aug 2021 16:31:36 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 3cdf7dfa -use new GNUNET_TIME_relative_is_zero API
3cdf7dfa is described below
commit 3cdf7dfaaac3595b07931b385b3ce4aa8e67ebed
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Aug 7 16:31:33 2021 +0200
-use new GNUNET_TIME_relative_is_zero API
---
src/lib/auditor_api_deposit_confirmation.c | 3 ++-
src/lib/exchange_api_handle.c | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/lib/auditor_api_deposit_confirmation.c
b/src/lib/auditor_api_deposit_confirmation.c
index 2afbfd1e..93d7d557 100644
--- a/src/lib/auditor_api_deposit_confirmation.c
+++ b/src/lib/auditor_api_deposit_confirmation.c
@@ -227,7 +227,8 @@ verify_signatures (const struct GNUNET_HashCode *h_wire,
TALER_LOG_WARNING ("Invalid signature on exchange signing key!\n");
return GNUNET_SYSERR;
}
- if (0 == GNUNET_TIME_absolute_get_remaining (ep_end).rel_value_us)
+ if (GNUNET_TIME_relative_is_zero (
+ GNUNET_TIME_absolute_get_remaining (ep_end)))
{
GNUNET_break (0);
TALER_LOG_WARNING ("Exchange signing key is no longer valid!\n");
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 61523972..32234ee6 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -1079,8 +1079,9 @@ TALER_EXCHANGE_check_keys_current (struct
TALER_EXCHANGE_Handle *exchange,
exchange->state = MHS_INIT;
}
if ( (! force_download) &&
- (0 < GNUNET_TIME_absolute_get_remaining (
- exchange->key_data_expiration).rel_value_us) )
+ (! GNUNET_TIME_relative_is_zero (
+ GNUNET_TIME_absolute_get_remaining (
+ exchange->key_data_expiration)) ) )
return exchange->key_data_expiration;
if (NULL == exchange->retry_task)
exchange->retry_task = GNUNET_SCHEDULER_add_now (&request_keys,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -use new GNUNET_TIME_relative_is_zero API,
gnunet <=