mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
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
This commit is contained in:
parent
118d7018d0
commit
85dccce35d
@ -2815,7 +2815,7 @@ compute_publishserverdescriptor(or_options_t *options)
|
|||||||
#define MAX_PREDICTED_CIRCS_RELEVANCE (60*60)
|
#define MAX_PREDICTED_CIRCS_RELEVANCE (60*60)
|
||||||
|
|
||||||
/** Highest allowable value for RendPostPeriod. */
|
/** 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
|
/** Lowest allowable value for MaxCircuitDirtiness; if this is too low, Tor
|
||||||
* will generate too many circuits and potentially overload the network. */
|
* will generate too many circuits and potentially overload the network. */
|
||||||
|
Loading…
Reference in New Issue
Block a user