diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-13 18:09:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-13 18:09:38 +0000 |
commit | 33cf3ada940aab8567475e9baeb028da1c97b50f (patch) | |
tree | b088acaef40a77077280bee6214463b13e565adb /src/or/dirvote.c | |
parent | 81d1b679906bd234a43657751dbd9445d04e9d55 (diff) | |
download | tor-33cf3ada940aab8567475e9baeb028da1c97b50f.tar.gz tor-33cf3ada940aab8567475e9baeb028da1c97b50f.zip |
r14526@catbus: nickm | 2007-08-13 14:08:37 -0400
Make voting interval configurable.
svn:r11083
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r-- | src/or/dirvote.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 8034b7d48d..ad15c04226 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -998,10 +998,12 @@ authority_cert_dup(authority_cert_t *cert) void dirvote_get_preferred_voting_intervals(vote_timing_t *timing_out) { + or_options_t *options = get_options(); + tor_assert(timing_out); - /* XXXX020 make these configurable. */ - timing_out->vote_interval = 3600; + timing_out->vote_interval = options->V3AuthVotingInterval; + /* XXXX020 make these configurable. */ timing_out->n_intervals_valid = 3; timing_out->vote_delay = 300; timing_out->dist_delay = 300; |