Merge branch 'tap-out-phase-1' into 'main'
[tor.git] / src / feature / dircommon / vote_timing_st.h
blobace2ace43bee2f179eccfddf51691a4b3a094c74
1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 /**
8 * @file vote_timing_st.h
9 * @brief Directory voting schedule structure.
10 **/
12 #ifndef VOTE_TIMING_ST_H
13 #define VOTE_TIMING_ST_H
15 /** Describes the schedule by which votes should be generated. */
16 struct vote_timing_t {
17 /** Length in seconds between one consensus becoming valid and the next
18 * becoming valid. */
19 int vote_interval;
20 /** For how many intervals is a consensus valid? */
21 int n_intervals_valid;
22 /** Time in seconds allowed to propagate votes */
23 int vote_delay;
24 /** Time in seconds allowed to propagate signatures */
25 int dist_delay;
28 #endif /* !defined(VOTE_TIMING_ST_H) */