diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-16 17:04:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-05 00:46:32 -0500 |
commit | 1cd67443383966687af3b2f9086ceeb7915017bf (patch) | |
tree | 6091f4876653cc15296112f12e6d135913b74a5c /src/or/dirvote.h | |
parent | 2dcad03eba5ece3fa927623b41802a7ea11d95dd (diff) | |
download | tor-1cd67443383966687af3b2f9086ceeb7915017bf.tar.gz tor-1cd67443383966687af3b2f9086ceeb7915017bf.zip |
New consensus method: clip the maximum votable unmeasured bw
If we're deciding on a node's bandwidth based on "Bandwidth="
declarations, clip it to "20" or to the maxunmeasuredbw parameter,
if it's voted on.
This adds a new consensus method.
This is "part A" of bug 2286
Diffstat (limited to 'src/or/dirvote.h')
-rw-r--r-- | src/or/dirvote.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/dirvote.h b/src/or/dirvote.h index f134454321..a7398743b0 100644 --- a/src/or/dirvote.h +++ b/src/or/dirvote.h @@ -20,7 +20,7 @@ #define MIN_VOTE_INTERVAL 300 /** The highest consensus method that we currently support. */ -#define MAX_SUPPORTED_CONSENSUS_METHOD 16 +#define MAX_SUPPORTED_CONSENSUS_METHOD 17 /** Lowest consensus method that contains a 'directory-footer' marker */ #define MIN_METHOD_FOR_FOOTER 9 @@ -52,6 +52,10 @@ * line */ #define MIN_METHOD_FOR_NTOR_KEY 16 +/** Lowest consensus method that ensures that authorities output an + * Unmeasured=1 flag for unmeasured bandwidths */ +#define MIN_METHOD_TO_CLIP_UNMEASURED_BW 17 + void dirvote_free_all(void); /* vote manipulation */ |