2018-06-15 18:50:07 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 18:33:22 +01:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-06-15 18:50:07 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
#ifndef VOTE_TIMING_ST_H
|
|
|
|
#define VOTE_TIMING_ST_H
|
|
|
|
|
|
|
|
/** Describes the schedule by which votes should be generated. */
|
|
|
|
struct vote_timing_t {
|
|
|
|
/** Length in seconds between one consensus becoming valid and the next
|
|
|
|
* becoming valid. */
|
|
|
|
int vote_interval;
|
|
|
|
/** For how many intervals is a consensus valid? */
|
|
|
|
int n_intervals_valid;
|
|
|
|
/** Time in seconds allowed to propagate votes */
|
|
|
|
int vote_delay;
|
|
|
|
/** Time in seconds allowed to propagate signatures */
|
|
|
|
int dist_delay;
|
|
|
|
};
|
|
|
|
|
2019-06-05 15:33:35 +02:00
|
|
|
#endif /* !defined(VOTE_TIMING_ST_H) */
|
2018-06-15 18:50:07 +02:00
|
|
|
|