From 1cd67443383966687af3b2f9086ceeb7915017bf Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 16 May 2012 17:04:51 -0400 Subject: 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 --- src/or/dirvote.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/or/dirvote.h') 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 */ -- cgit v1.2.3-54-g00ecf