diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-24 22:19:54 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-24 22:19:54 +0200 |
commit | ce266ce8f2333d5c30672cf56c3d2e92ef20a851 (patch) | |
tree | 3195319f0bb5dd5e95d4f65b48489c6d3f9339e4 | |
parent | 35f7415f7e7a05b689333f5ce5eed028177fc92c (diff) |
fix keyup timetravel (#6523)
m--------- | contrib/gana | 0 | ||||
-rw-r--r-- | src/exchange-tools/taler-exchange-keyup.c | 5 |
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 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, |