diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-23 00:23:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-23 00:23:33 +0000 |
commit | 6f7518c5015994c2f4e0d06bd8f2c85221201b3e (patch) | |
tree | ff72018af59f7687c182407e221741afa9741b5a /src/or/dirvote.c | |
parent | eba143611b70d287b3efb95f2261a57274533af9 (diff) | |
download | tor-6f7518c5015994c2f4e0d06bd8f2c85221201b3e.tar.gz tor-6f7518c5015994c2f4e0d06bd8f2c85221201b3e.zip |
r16054@catbus: nickm | 2007-10-22 20:22:13 -0400
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
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r-- | src/or/dirvote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 81b046f65d..32943319a3 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -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 |