aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-05 11:28:25 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-05 11:31:24 -0400
commit4a621a50f53ebeac62d30f427c2db0c627f80a31 (patch)
tree96d2a46e8059f726b120ce7790e1e3a7ec2a4f96 /src/or/dirvote.h
parent5d496963b4a98512711bd4cbc5565535d89e7845 (diff)
downloadtor-4a621a50f53ebeac62d30f427c2db0c627f80a31.tar.gz
tor-4a621a50f53ebeac62d30f427c2db0c627f80a31.zip
Consensus method 18: Add a base64 ID digest to the microdesc
This is a stopgap measure to make sure that microdescriptors never collide; see bug 11743.
Diffstat (limited to 'src/or/dirvote.h')
-rw-r--r--src/or/dirvote.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/dirvote.h b/src/or/dirvote.h
index 3a4951a95f..2082579210 100644
--- a/src/or/dirvote.h
+++ b/src/or/dirvote.h
@@ -22,7 +22,7 @@
#define MIN_VOTE_INTERVAL 300
/** The highest consensus method that we currently support. */
-#define MAX_SUPPORTED_CONSENSUS_METHOD 17
+#define MAX_SUPPORTED_CONSENSUS_METHOD 18
/** Lowest consensus method that contains a 'directory-footer' marker */
#define MIN_METHOD_FOR_FOOTER 9
@@ -61,6 +61,10 @@
* Unmeasured=1 flag for unmeasured bandwidths */
#define MIN_METHOD_TO_CLIP_UNMEASURED_BW 17
+/** Lowest consensus method that ensures that authorities output an
+ * Unmeasured=1 flag for unmeasured bandwidths */
+#define MIN_METHOD_FOR_ID_HASH_IN_MD 18
+
/** Default bandwidth to clip unmeasured bandwidths to using method >=
* MIN_METHOD_TO_CLIP_UNMEASURED_BW */
#define DEFAULT_MAX_UNMEASURED_BW_KB 20