aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirvote.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-24 11:51:41 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-24 12:01:09 -0500
commit0a0c612b79cb5230cc70922634a37f73a1c87c10 (patch)
treee778d0cba64f6e3aa5cb027a6769c2fa817e4291 /src/feature/dirauth/dirvote.h
parentd29e3a02d57aef402a1aaf9747ef44393b043d98 (diff)
downloadtor-0a0c612b79cb5230cc70922634a37f73a1c87c10.tar.gz
tor-0a0c612b79cb5230cc70922634a37f73a1c87c10.zip
Add a consensus method in which md families get canonicalized.
Implements prop298. Closes ticket 28266.
Diffstat (limited to 'src/feature/dirauth/dirvote.h')
-rw-r--r--src/feature/dirauth/dirvote.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/feature/dirauth/dirvote.h b/src/feature/dirauth/dirvote.h
index a21e9f3455..6afb6047ff 100644
--- a/src/feature/dirauth/dirvote.h
+++ b/src/feature/dirauth/dirvote.h
@@ -57,7 +57,7 @@
#define MIN_SUPPORTED_CONSENSUS_METHOD 25
/** The highest consensus method that we currently support. */
-#define MAX_SUPPORTED_CONSENSUS_METHOD 28
+#define MAX_SUPPORTED_CONSENSUS_METHOD 29
/** Lowest consensus method where authorities vote on required/recommended
* protocols. */
@@ -79,6 +79,12 @@
* addresses. See #23828 and #20916. */
#define MIN_METHOD_FOR_NO_A_LINES_IN_MICRODESC 28
+/**
+ * Lowest consensus method where microdescriptor lines are put in canonical
+ * form for improved compressibility and ease of storage. See proposal 298.
+ **/
+#define MIN_METHOD_FOR_CANONICAL_FAMILIES_IN_MICRODESCS 29
+
/** Default bandwidth to clip unmeasured bandwidths to using method >=
* MIN_METHOD_TO_CLIP_UNMEASURED_BW. (This is not a consensus method; do not
* get confused with the above macros.) */