aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-15 17:51:16 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-15 17:57:37 -0400
commitdf99ce23952d76c0ad8265de250e30946c57eff9 (patch)
treee5d19a354955585ccc40222128bc8146a4c4ca3e /src/or/dirvote.h
parent1f35fd0017240a82ae48475a989819aa81a297dc (diff)
downloadtor-df99ce23952d76c0ad8265de250e30946c57eff9.tar.gz
tor-df99ce23952d76c0ad8265de250e30946c57eff9.zip
No longer advertise or negotiate any consensus method before 13.
Implements proposal 215; closes ticket 10163. Why? From proposal 215: Consensus method 1 is no longer viable for the Tor network. It doesn't result in a microdescriptor consensus, and omits other fields that clients need in order to work well. Consensus methods under 12 have security issues, since they let a single authority set a consensus parameter. ... For example, while Tor 0.2.4.x is under development, authorities should really not be running anything before Tor 0.2.3.x. Tor 0.2.3.x has supported consensus method 13 since 0.2.3.21-rc, so it's okay for 0.2.4.x to require 13 as the minimum method. We even might go back to method 12, since the worst outcome of not using 13 would be some warnings in client logs. Consensus method 12 was a security improvement, so we don't want to roll back before that.
Diffstat (limited to 'src/or/dirvote.h')
-rw-r--r--src/or/dirvote.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dirvote.h b/src/or/dirvote.h
index 4c57e43661..c9ea9879b6 100644
--- a/src/or/dirvote.h
+++ b/src/or/dirvote.h
@@ -21,6 +21,9 @@
/** Smallest allowable voting interval. */
#define MIN_VOTE_INTERVAL 300
+/** The lowest consensus method that we currently support. */
+#define MIN_SUPPORTED_CONSENSUS_METHOD 13
+
/** The highest consensus method that we currently support. */
#define MAX_SUPPORTED_CONSENSUS_METHOD 18