diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-09-21 19:11:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-09-21 19:11:52 +0000 |
commit | 65cf389998ee13667d86aba5e7b924376fe1ac56 (patch) | |
tree | da3ddfb1c1db4fa666d1e3ebf17689696d5f2392 /src/or | |
parent | b29cf4cc058da43c245e5db58f1cb8e33403aef4 (diff) | |
download | tor-65cf389998ee13667d86aba5e7b924376fe1ac56.tar.gz tor-65cf389998ee13667d86aba5e7b924376fe1ac56.zip |
r15253@catbus: nickm | 2007-09-21 15:03:51 -0400
Oops; we had vote_delay and dist_delay switched when computing when to generate our consensus. Harmless so far, but let's get that fixed.
svn:r11558
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dirvote.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index f8b8086e96..f39773dcb5 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -1062,8 +1062,12 @@ dirvote_get_start_of_next_interval(time_t now, int interval) static struct { /** When do we generate and distribute our vote for this interval? */ time_t voting_starts; + /** DOCDOC */ + time_t fetch_missing_votes; /** When do we give up on getting more votes and generate a consensus? */ time_t voting_ends; + /** DOCDOC */ + time_t fetch_missing_signatures; /** When do we publish the consensus? */ time_t interval_starts; @@ -1076,7 +1080,7 @@ static struct { int have_built_consensus; /* True iff we have published our consensus. */ int have_published_consensus; -} voting_schedule = {0,0,0,0,0,0,0}; +} voting_schedule = {0,0,0,0,0,0,0,0,0}; /** Set voting_schedule to hold the timing for the next vote we should be * doing. */ @@ -1112,8 +1116,10 @@ dirvote_recalculate_timing(time_t now) tor_assert(end > start); - voting_schedule.voting_ends = start - vote_delay; - voting_schedule.voting_starts = start - vote_delay - dist_delay; + voting_schedule.fetch_missing_signatures = start - (dist_delay/2); + voting_schedule.voting_ends = start - dist_delay; + voting_schedule.fetch_missing_votes = start - dist_delay - (vote_delay/2); + voting_schedule.voting_starts = start - dist_delay - vote_delay; voting_schedule.discard_old_votes = start + ((end-start) - vote_delay - dist_delay)/2 ; |