summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-03-08 15:15:12 +0100
committerAlexander Færøy <ahf@torproject.org>2017-03-10 13:04:43 +0100
commit85dccce35db907221df38da7bd789f28f7d1e2f9 (patch)
treefe9670bf9d4dc90ccd0154fb04bdc4729abecc9e /src
parent118d7018d07ebc6324e8b7220002465479b0cbf3 (diff)
downloadtor-85dccce35db907221df38da7bd789f28f7d1e2f9.tar.gz
tor-85dccce35db907221df38da7bd789f28f7d1e2f9.zip
Make MAX_DIR_PERIOD independent of MIN_ONION_KEY_LIFETIME.
As part of the work for proposal #274 we are going to remove the need for MIN_ONION_KEY_LIFETIME and turn it into a dynamic value defined by a consensus parameter. See: https://bugs.torproject.org/21641
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index a527571cb0..79e12f4e22 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2815,7 +2815,7 @@ compute_publishserverdescriptor(or_options_t *options)
#define MAX_PREDICTED_CIRCS_RELEVANCE (60*60)
/** Highest allowable value for RendPostPeriod. */
-#define MAX_DIR_PERIOD (MIN_ONION_KEY_LIFETIME/2)
+#define MAX_DIR_PERIOD ((7*24*60*60)/2)
/** Lowest allowable value for MaxCircuitDirtiness; if this is too low, Tor
* will generate too many circuits and potentially overload the network. */