mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
Remove MIN_METHOD_FOR_MIDDLEONLY
This commit is contained in:
parent
a62ea32246
commit
5b80a8f509
@ -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");
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user