]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make tor recalculate voting schedule even if not a dirauth
authorDavid Goulet <dgoulet@torproject.org>
Tue, 31 Oct 2017 13:54:55 +0000 (09:54 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 31 Oct 2017 13:55:24 +0000 (09:55 -0400)
Because the HS subsystem needs the voting schedule to compute time period, we
need all tor type to do that.

Part of #23623

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/dirvote.c

index 6f237e9b267e5e779f8c7b65b3fc38f05ca72860..c5ceefecb4233059602deb72108ff28a523d7285 100644 (file)
@@ -2863,16 +2863,13 @@ dirvote_get_next_valid_after_time(void)
 }
 
 /** Set voting_schedule to hold the timing for the next vote we should be
- * doing. */
+ * doing. All type of tor do that because HS subsystem needs the timing as
+ * well to function properly. */
 void
 dirvote_recalculate_timing(const or_options_t *options, time_t now)
 {
   voting_schedule_t *new_voting_schedule;
 
-  if (!authdir_mode_v3(options)) {
-    return;
-  }
-
   /* get the new voting schedule */
   new_voting_schedule = get_voting_schedule(options, now, LOG_NOTICE);
   tor_assert(new_voting_schedule);