]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove MIN_METHOD_FOR_MIDDLEONLY
authorNick Mathewson <nickm@torproject.org>
Thu, 5 Oct 2023 12:25:01 +0000 (08:25 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 5 Oct 2023 13:07:47 +0000 (09:07 -0400)
src/feature/dirauth/dirvote.c
src/feature/dirauth/dirvote.h

index 36025b88a9c61015f3257158ad25c1924e887f60..2839c6db1581244f291db0368d0fbcf70f552a08 100644 (file)
@@ -2129,7 +2129,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
       /* Starting with consensus method 32, we handle the middle-only
        * flag specially: when it is present, we clear some flags, and
        * set others. */
-      if (is_middle_only && consensus_method >= MIN_METHOD_FOR_MIDDLEONLY) {
+      if (is_middle_only) {
         remove_flag(chosen_flags, "Exit");
         remove_flag(chosen_flags, "V2Dir");
         remove_flag(chosen_flags, "Guard");
index 4790180256bcced8d3a5f14a6483684a5af17348..6ac07f171a33d906428544e0226719d76e185486 100644 (file)
 /** The highest consensus method that we currently support. */
 #define MAX_SUPPORTED_CONSENSUS_METHOD 34
 
-/** Lowest consensus method for which we handle the MiddleOnly flag specially.
- */
-#define MIN_METHOD_FOR_MIDDLEONLY 32
-
 /**
  * Lowest consensus method for which we suppress the published time in
  * microdescriptor consensuses.