From ce266ce8f2333d5c30672cf56c3d2e92ef20a851 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 24 Aug 2020 22:19:54 +0200 Subject: [PATCH] fix keyup timetravel (#6523) --- contrib/gana | 2 +- src/exchange-tools/taler-exchange-keyup.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/gana b/contrib/gana index 96424c796..bc9def461 160000 --- a/contrib/gana +++ b/contrib/gana @@ -1 +1 @@ -Subproject commit 96424c79601ad72f443a7c06a909af19b5bce85f +Subproject commit bc9def4616494c85af54418bb11193c42f087634 diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c index 27a5f3cc1..074499aef 100644 --- a/src/exchange-tools/taler-exchange-keyup.c +++ b/src/exchange-tools/taler-exchange-keyup.c @@ -1283,6 +1283,11 @@ run (void *cls, /* The user gave "--now", use it! */ now = now_tmp; } + else + { + /* get current time again, we may be timetraveling! */ + now = GNUNET_TIME_absolute_get (); + } GNUNET_TIME_round_abs (&now); if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_time (kcfg,