aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2013-03-26 14:15:58 -0700
committerNick Mathewson <nickm@torproject.org>2013-03-29 12:20:54 -0400
commit651e49713c38b8ec2bde285001e46b61c500d10c (patch)
tree97132b2f326cd525f6bda4874df22a4d570a3ad1 /src/or/dirvote.h
parentf6a2f088fdd3b3ed3ccc355c98dde8da37b70a09 (diff)
downloadtor-651e49713c38b8ec2bde285001e46b61c500d10c.tar
tor-651e49713c38b8ec2bde285001e46b61c500d10c.tar.gz
Bug 8419: Apply the badexit fix from #2203 to validatio too
This was causing dirauths to emit flag weight validation warns if there was a sufficiently large amount of badexit bandwidth to make a difference in flag weight results.
Diffstat (limited to 'src/or/dirvote.h')
-rw-r--r--src/or/dirvote.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dirvote.h b/src/or/dirvote.h
index fbb61b652..8d036d6c1 100644
--- a/src/or/dirvote.h
+++ b/src/or/dirvote.h
@@ -34,6 +34,9 @@
/** Lowest consensus method that generates microdescriptors */
#define MIN_METHOD_FOR_MICRODESC 8
+/** Lowest consensus method that doesn't count bad exits as exits for weight */
+#define MIN_METHOD_TO_CUT_BADEXIT_WEIGHT 11
+
/** Lowest consensus method that ensures a majority of authorities voted
* for a param. */
#define MIN_METHOD_FOR_MAJORITY_PARAMS 12