From 3a4429aa008fdab3b5787cd5e406bfd1c556c8e0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 18 Jun 2015 14:14:14 +0200 Subject: do not apply 'now' restriction on anchor finding --- src/mint-tools/taler-mint-keyup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/mint-tools/taler-mint-keyup.c b/src/mint-tools/taler-mint-keyup.c index 5eff6f58a..e9de07ef4 100644 --- a/src/mint-tools/taler-mint-keyup.c +++ b/src/mint-tools/taler-mint-keyup.c @@ -366,9 +366,8 @@ get_anchor_iter (void *cls, filename); return GNUNET_OK; } - if (stamp.abs_value_us <= now.abs_value_us) - *anchor = GNUNET_TIME_absolute_max (stamp, - *anchor); + *anchor = GNUNET_TIME_absolute_max (stamp, + *anchor); return GNUNET_OK; } @@ -419,7 +418,7 @@ get_anchor (const char *dir, "Existing keys are way too old, starting with fresh key set.\n"); *anchor = now; } - else if (anchor->abs_value_us != now.abs_value_us) // Also odd... + else if (anchor->abs_value_us != now.abs_value_us) { /* Real starting time is the last start time + duration - overlap */ *anchor = GNUNET_TIME_absolute_add (*anchor, -- cgit v1.2.3