summaryrefslogtreecommitdiff
path: root/src/or/dirvote.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-06-13 12:42:49 -0400
committerNick Mathewson <nickm@torproject.org>2013-06-13 12:42:49 -0400
commit45424b2ca1638d5b3d147bb518c092a41028e259 (patch)
tree867615adfef97807842059ffb2fade77c08dc60b /src/or/dirvote.h
parent4b781e24fb920ad4cd2268b609e4b4b0bd5adb7d (diff)
parentc132427db4f207a32e4abaae0e070840e5e2b808 (diff)
downloadtor-45424b2ca1638d5b3d147bb518c092a41028e259.tar.gz
tor-45424b2ca1638d5b3d147bb518c092a41028e259.zip
Merge remote-tracking branch 'linus/bug8532'
Diffstat (limited to 'src/or/dirvote.h')
-rw-r--r--src/or/dirvote.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/dirvote.h b/src/or/dirvote.h
index b236452122..a3e6cc0d68 100644
--- a/src/or/dirvote.h
+++ b/src/or/dirvote.h
@@ -13,9 +13,9 @@
#define TOR_DIRVOTE_H
/** Lowest allowable value for VoteSeconds. */
-#define MIN_VOTE_SECONDS 20
+#define MIN_VOTE_SECONDS 2
/** Lowest allowable value for DistSeconds. */
-#define MIN_DIST_SECONDS 20
+#define MIN_DIST_SECONDS 2
/** Smallest allowable voting interval. */
#define MIN_VOTE_INTERVAL 300
@@ -86,7 +86,9 @@ authority_cert_t *authority_cert_dup(authority_cert_t *cert);
/* vote scheduling */
void dirvote_get_preferred_voting_intervals(vote_timing_t *timing_out);
-time_t dirvote_get_start_of_next_interval(time_t now, int interval);
+time_t dirvote_get_start_of_next_interval(time_t now,
+ int interval,
+ int offset);
void dirvote_recalculate_timing(const or_options_t *options, time_t now);
void dirvote_act(const or_options_t *options, time_t now);