aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2023-10-05 08:25:01 -0400
committerNick Mathewson <nickm@torproject.org>2023-10-05 09:07:47 -0400
commit5b80a8f509ca7fbc8d141acc754685439519fcf1 (patch)
tree7ebabbe24ccdb027036d9f8e5272bbfcf755706a /src
parenta62ea322464d4e1f8b0c8d48e3ad779a80fafac6 (diff)
downloadtor-5b80a8f509ca7fbc8d141acc754685439519fcf1.tar.gz
tor-5b80a8f509ca7fbc8d141acc754685439519fcf1.zip
Remove MIN_METHOD_FOR_MIDDLEONLY
Diffstat (limited to 'src')
-rw-r--r--src/feature/dirauth/dirvote.c2
-rw-r--r--src/feature/dirauth/dirvote.h4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index 36025b88a9..2839c6db15 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -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");
diff --git a/src/feature/dirauth/dirvote.h b/src/feature/dirauth/dirvote.h
index 4790180256..6ac07f171a 100644
--- a/src/feature/dirauth/dirvote.h
+++ b/src/feature/dirauth/dirvote.h
@@ -55,10 +55,6 @@
/** 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.