aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/voting_schedule.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-24 11:06:44 -0500
committerGeorge Kadianakis <desnacked@riseup.net>2020-03-03 14:35:01 +0200
commit9fb18756df3f76545f8f591881a95e1e09e735a0 (patch)
treeec3fc17cafd8df950a7d5704526fe3e428bd37ed /src/feature/dirauth/voting_schedule.h
parent7777f1df495c0f6f778a4d2378d5ddb89f985bda (diff)
downloadtor-9fb18756df3f76545f8f591881a95e1e09e735a0.tar.gz
tor-9fb18756df3f76545f8f591881a95e1e09e735a0.zip
Stop using all dirauth-only options in shared_random_client.c
This is not as clean a patch as I would like: see the comment on ASSUME_AUTHORITY_SCHEDULING. This issue here is that the unit tests sometimes assume that we are going to be looking at the dirauth options and behaving like a dirauth, but without setting the options to turn is into one. This isn't an issue for actually running Tor, as far as I can tell with chutney.
Diffstat (limited to 'src/feature/dirauth/voting_schedule.h')
-rw-r--r--src/feature/dirauth/voting_schedule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/dirauth/voting_schedule.h b/src/feature/dirauth/voting_schedule.h
index b5dc811bfc..5472719b25 100644
--- a/src/feature/dirauth/voting_schedule.h
+++ b/src/feature/dirauth/voting_schedule.h
@@ -26,6 +26,9 @@ typedef struct {
/** When do we publish the consensus? */
time_t interval_starts;
+ /** Our computed dirauth interval */
+ int interval;
+
/** True iff we have generated and distributed our vote. */
int have_voted;
/** True iff we've requested missing votes. */
@@ -57,6 +60,7 @@ void dirauth_sched_recalculate_timing(const or_options_t *options,
time_t now);
time_t dirauth_sched_get_next_valid_after_time(void);
+time_t dirauth_sched_get_cur_valid_after_time(void);
int dirauth_sched_get_configured_interval(void);
#endif /* !defined(TOR_VOTING_SCHEDULE_H) */