]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r16054@catbus: nickm | 2007-10-22 20:22:13 -0400
authorNick Mathewson <nickm@torproject.org>
Tue, 23 Oct 2007 00:23:33 +0000 (00:23 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 23 Oct 2007 00:23:33 +0000 (00:23 +0000)
 Make authorities start accepting (and advertising their acceptance of) consensus method 2.  If all goes well, we'll have a working Unnamed flag.  Otherwise, we'll have a fun backtrace.

svn:r12113

src/or/dirvote.c

index 81b046f65d34cc8d082aeefb86197f1e235109f4..32943319a3213c687f2cdf03d9b8f53a326e0e25 100644 (file)
@@ -116,7 +116,7 @@ format_networkstatus_vote(crypto_pk_env_t *private_signing_key,
     tor_snprintf(status, len,
                  "network-status-version 3\n"
                  "vote-status vote\n"
-                 "consensus-methods 1\n"
+                 "consensus-methods 1 2\n"
                  "published %s\n"
                  "valid-after %s\n"
                  "fresh-until %s\n"
@@ -421,7 +421,7 @@ compute_consensus_method(smartlist_t *votes)
 static int
 consensus_method_is_supported(int method)
 {
-  return (method == 1);
+  return (method >= 1) && (method <= 2);
 }
 
 /** Given a list of vote networkstatus_vote_t in <b>votes</b>, our public