summaryrefslogtreecommitdiff
path: root/src/exchange-tools/taler-exchange-keyup.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-04-06 20:17:41 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-04-06 20:17:41 +0200
commit301f287b2b200ceb1beea50711c6611a3d1f6a2f (patch)
treeb77bc6231be32239f8e041d1e67b6e245ecc2f90 /src/exchange-tools/taler-exchange-keyup.c
parentfdeb6301606b09ee68ca5cdc208a44f07fe50ce4 (diff)
downloadexchange-301f287b2b200ceb1beea50711c6611a3d1f6a2f.tar.gz
exchange-301f287b2b200ceb1beea50711c6611a3d1f6a2f.tar.bz2
exchange-301f287b2b200ceb1beea50711c6611a3d1f6a2f.zip
Test the big lookahead_sign, plus notes.
Diffstat (limited to 'src/exchange-tools/taler-exchange-keyup.c')
-rw-r--r--src/exchange-tools/taler-exchange-keyup.c11
1 files changed, 9 insertions, 2 deletions
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 !=