vote_timing_st.h (853B)
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 */ 6 7 /** 8 * @file vote_timing_st.h 9 * @brief Directory voting schedule structure. 10 **/ 11 12 #ifndef VOTE_TIMING_ST_H 13 #define VOTE_TIMING_ST_H 14 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; 26 }; 27 28 #endif /* !defined(VOTE_TIMING_ST_H) */