vote_timing_st.h 738 B

123456789101112131415161718192021222324
  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-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef VOTE_TIMING_ST_H
  7. #define VOTE_TIMING_ST_H
  8. /** Describes the schedule by which votes should be generated. */
  9. struct vote_timing_t {
  10. /** Length in seconds between one consensus becoming valid and the next
  11. * becoming valid. */
  12. int vote_interval;
  13. /** For how many intervals is a consensus valid? */
  14. int n_intervals_valid;
  15. /** Time in seconds allowed to propagate votes */
  16. int vote_delay;
  17. /** Time in seconds allowed to propagate signatures */
  18. int dist_delay;
  19. };
  20. #endif