]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make MAX_DIR_PERIOD independent of MIN_ONION_KEY_LIFETIME.
authorAlexander Færøy <ahf@torproject.org>
Wed, 8 Mar 2017 14:15:12 +0000 (15:15 +0100)
committerAlexander Færøy <ahf@torproject.org>
Fri, 10 Mar 2017 12:04:43 +0000 (13:04 +0100)
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

src/or/config.c

index a527571cb024a82cae16288c90d9fd852dcd8e13..79e12f4e2206837db9d967e17f36bf5a8e879d24 100644 (file)
@@ -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. */