diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-06-12 14:29:06 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-20 08:01:02 -0400 |
commit | a686464420801c5aa58bde1babbf96d3b8520b00 (patch) | |
tree | 5c79948944ccc38b91e7c39dc89d05d708f89846 /src/or/voting_schedule.h | |
parent | 2520ee34c6d1b5eb83a6c3ffdaf1e8b3013b619f (diff) | |
download | tor-a686464420801c5aa58bde1babbf96d3b8520b00.tar.gz tor-a686464420801c5aa58bde1babbf96d3b8520b00.zip |
Recreate voting schedule before use if it's outdated.
Diffstat (limited to 'src/or/voting_schedule.h')
-rw-r--r-- | src/or/voting_schedule.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/voting_schedule.h b/src/or/voting_schedule.h index 4f9d584031..087701408e 100644 --- a/src/or/voting_schedule.h +++ b/src/or/voting_schedule.h @@ -43,6 +43,10 @@ typedef struct { * timings only for the first vote even though this object was initilized * prior to voting. */ int created_on_demand; + + /** The valid-after time of the last live consensus that filled this voting + * schedule. It's used to detect outdated voting schedules. */ + time_t live_consensus_valid_after; } voting_schedule_t; /* Public API. */ |