diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-01-15 19:31:23 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-01-15 19:42:17 +0100 |
commit | b06617c9481ff577e2f0fed4264c80a718f98c29 (patch) | |
tree | 5c1b8481446be7a50821da08495606e45386a07a /src/or/or.h | |
parent | 932e5c3cf0bd890313b035a4ab00003e81adb720 (diff) | |
download | tor-b06617c9481ff577e2f0fed4264c80a718f98c29.tar.gz tor-b06617c9481ff577e2f0fed4264c80a718f98c29.zip |
Provide constant limits for all consensus params
This addresses Nick's concern about doing non-constant bounds checking
inside networkstatus_get_param().
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h index 01ff5e89d5..acca61f7d3 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2981,8 +2981,8 @@ typedef uint32_t build_time_t; * build in terms of CDF quantile. */ #define CBT_DEFAULT_CLOSE_QUANTILE 95 -/* Minimum value derived from cbtquantile parameter. */ -#define CBT_MAX_CLOSE_QUANTILE 99 +#define CBT_MIN_CLOSE_QUANTILE CBT_MIN_QUANTILE_CUTOFF +#define CBT_MAX_CLOSE_QUANTILE CBT_MAX_QUANTILE_CUTOFF /** * How many circuits count as recent when considering if the @@ -3027,9 +3027,8 @@ double circuit_build_times_quantile_cutoff(void); /** Initial circuit build timeout in milliseconds */ #define CBT_DEFAULT_TIMEOUT_INITIAL_VALUE (60*1000) +#define CBT_MIN_TIMEOUT_INITIAL_VALUE CBT_MIN_TIMEOUT_MIN_VALUE #define CBT_MAX_TIMEOUT_INITIAL_VALUE INT32_MAX -/* CBT_MIN_TIMEOUT_INITIAL_VALUE dependent on - * circuit_build_times_min_timeout() */ int32_t circuit_build_times_initial_timeout(void); #if CBT_DEFAULT_MAX_RECENT_TIMEOUT_COUNT < CBT_MIN_MAX_RECENT_TIMEOUT_COUNT |