aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-30 15:29:41 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-08-30 15:30:22 +0300
commit1dc21b87904b527140446674876076f29c78b89f (patch)
tree51226a78e0030ad8c4c7fde39afad5bfa8cdf270 /src/or/hs_service.h
parentd3cefddfc5dd75fd0a8dbd27e7b846b26bb86c4d (diff)
downloadtor-1dc21b87904b527140446674876076f29c78b89f.tar.gz
tor-1dc21b87904b527140446674876076f29c78b89f.zip
prop224: Simplify HSDir set change algo.
Our logic for detecting hsdir set changes was needlessly compicated: we had to sort smartlists and compare them. Instead, we can simplify things by employing the following logic: "We should reupload our descriptor if the latest HSDir set contains nodes that were not previously there"
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r--src/or/hs_service.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index 57717fc927..26f0bc0002 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -133,7 +133,7 @@ typedef struct hs_service_descriptor_t {
/** List of the responsible HSDirs (their b64ed identity digest) last time we
* uploaded this descriptor. If the set of responsible HSDirs is different
* from this list, this means we received new dirinfo and we need to
- * reupload our descriptor. This list is always sorted lexicographically. */
+ * reupload our descriptor. */
smartlist_t *previous_hsdirs;
} hs_service_descriptor_t;