]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r14885@Kushana: nickm | 2007-10-11 10:36:16 -0400
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Oct 2007 16:06:42 +0000 (16:06 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Oct 2007 16:06:42 +0000 (16:06 +0000)
 Document minimal values for voting times.  Use a macro instead of a magic number.  Remove an "enforce this" xxxx020 that was already enforced.

svn:r11868

doc/spec/dir-spec.txt
src/or/config.c
src/or/or.h

index c1fe74e8dc11b3aeefe3f5108133c951307dbc06..6e3099ffa28797f80ec0e57a5553e13e3900e9d6 100644 (file)
@@ -309,17 +309,28 @@ $Id$
 
    VA-DistSeconds-VoteSeconds: The authorities exchange votes.
 
+   VA-DistSeconds-VoteSeconds/2: The authorities try to download any
+   votes they don't have.
+
    VA-DistSeconds: The authorities calculate the consensus and exchange
    signatures.
 
+   VA-DistSeconds/2: The authorities try to download any signatures
+   they don't have.
+
    VA: All authorities have a multiply signed consensus.
 
    VA ... FU: Caches download the consensus.
 
    FU: The consensus is no long the freshest consensus.
 
+   FU ... VU: Clients download the consensus.
+
    VU: The consensus is no longer valid.
 
+   VoteSeconds and DistSeconds MUST each be at least 20 seconds; FU-VA and
+   VU-FU MUST each be at least 5 minutes.
+
 2. Router operation and formats
 
    ORs SHOULD generate a new router descriptor and a new extra-info
index 380e97bac21b4cd115fd9e715c7266ab97dcc901..4b548e33923af4b36c5807419a069887bcab9642 100644 (file)
@@ -3025,7 +3025,7 @@ options_validate(or_options_t *old_options, or_options_t *options,
   if (options->V3AuthNIntervalsValid < 2)
     REJECT("V3AuthNIntervalsValid must be at least 2.");
 
-  if (options->V3AuthVotingInterval < 300) {
+  if (options->V3AuthVotingInterval < MIN_VOTE_INTERVAL) {
     REJECT("V3AuthVotingInterval is insanely low.");
   } else if (options->V3AuthVotingInterval > 24*60*60) {
     REJECT("V3AuthVotingInterval is insanely high.");
index abb3c15fb7188ac38917bcc9a3280c059a8ef8cd..4674a4d29549e61c6b5173af3a27e6e091b865f1 100644 (file)
@@ -2886,11 +2886,11 @@ format_networkstatus_vote(crypto_pk_env_t *private_key,
 
 /********************************* dirvote.c ************************/
 
-/* XXXX020 enforce */
-/* XXXX020 document in dir-spec.txt */
-/*DOCDOC*/
+/** Lowest allowable value for VoteSeconds. /*
 #define MIN_VOTE_SECONDS 20
+/** Lowest allowable value for DistSeconds. */
 #define MIN_DIST_SECONDS 20
+/** Smallest allowable voting interval. */
 #define MIN_VOTE_INTERVAL 300
 
 void dirvote_free_all(void);