summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-24 22:19:54 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-24 22:19:54 +0200
commitce266ce8f2333d5c30672cf56c3d2e92ef20a851 (patch)
tree3195319f0bb5dd5e95d4f65b48489c6d3f9339e4
parent35f7415f7e7a05b689333f5ce5eed028177fc92c (diff)
downloadexchange-ce266ce8f2333d5c30672cf56c3d2e92ef20a851.tar.gz
exchange-ce266ce8f2333d5c30672cf56c3d2e92ef20a851.tar.bz2
exchange-ce266ce8f2333d5c30672cf56c3d2e92ef20a851.zip
fix keyup timetravel (#6523)
m---------contrib/gana0
-rw-r--r--src/exchange-tools/taler-exchange-keyup.c5
2 files changed, 5 insertions, 0 deletions
diff --git a/contrib/gana b/contrib/gana
-Subproject 96424c79601ad72f443a7c06a909af19b5bce85
+Subproject bc9def4616494c85af54418bb11193c42f08763
diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c
index 27a5f3cc..074499ae 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,