From 301f287b2b200ceb1beea50711c6611a3d1f6a2f Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Sat, 6 Apr 2019 20:17:41 +0200 Subject: Test the big lookahead_sign, plus notes. --- src/exchange-tools/taler-exchange-keyup.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/exchange-tools') diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c index 397355ee7..295eaa276 100644 --- a/src/exchange-tools/taler-exchange-keyup.c +++ b/src/exchange-tools/taler-exchange-keyup.c @@ -439,12 +439,20 @@ get_anchor (const char *dir, } else if (anchor->abs_value_us != now.abs_value_us) { - /* Real starting time is the last start time + duration - overlap */ + + /** + * XXX-ANCHOR question: why adding the duration only in this + * case, and not _all the times we found a anchor_ ? Like + * for instance out of this block below ? + */ *anchor = GNUNET_TIME_absolute_add (*anchor, duration); *anchor = GNUNET_TIME_absolute_subtract (*anchor, overlap); } + + + /* anchor is now the stamp where we need to create a new key */ } @@ -838,7 +846,6 @@ exchange_keys_update_cointype (void *cls, (GNUNET_TIME_absolute_get_difference (p.anchor, lookahead_sign_stamp), GNUNET_NO)); - dkf = get_cointype_file (&p, p.anchor); GNUNET_break (GNUNET_YES != -- cgit v1.2.3