When there's no concensus, we were forming a vote every 30
commitcb2b49c9c4949e0c1fc73319de3de8d78147a65d
authorRoger Dingledine <arma@torproject.org>
Tue, 23 Oct 2007 06:38:16 +0000 (23 06:38 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 23 Oct 2007 06:38:16 +0000 (23 06:38 +0000)
tree4b66cd324d6805bb76ae97751808e3e3eccc03f1
parent03eb85b1229628cbba54c6fa85aef731123c59ee
When there's no concensus, we were forming a vote every 30
minutes, but writing the "valid-after" line in our vote based
on our configured V3AuthVotingInterval: so unless the intervals
matched up, we immediately rejected our own vote because it didn't
start at the voting interval that caused us to construct a vote.

This caused log entries like:

Oct 23 01:16:16.303 [notice] Choosing expected valid-after time
as 2007-10-23 05:30:00: consensus_set=0, interval=1800
...
Oct 23 01:20:01.203 [notice] Choosing valid-after time in vote as
2007-10-23 06:00:00: consensus_set=0, interval=3600
Oct 23 01:20:01.290 [warn] Rejecting vote with valid-after time of
2007-10-23 06:00:00; we were expecting 2007-10-23 05:30:00
Oct 23 01:20:01.291 [warn] Couldn't store my own vote! (I told
myself, 'Bad valid-after time'.)

Nick, you should look at this, as it's your design. :)

svn:r12129
ChangeLog
src/or/dirserv.c
src/or/dirvote.c
src/or/or.h