mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
Dirauth-specific function to get voting interval.
This commit is contained in:
parent
d865a50296
commit
7777f1df49
@ -143,6 +143,15 @@ dirauth_sched_get_next_valid_after_time(void)
|
||||
return dirauth_get_voting_schedule()->interval_starts;
|
||||
}
|
||||
|
||||
/** Return the voting interval that we are configured to use.
|
||||
*
|
||||
* Dirauth only. */
|
||||
int
|
||||
dirauth_sched_get_configured_interval(void)
|
||||
{
|
||||
return get_options()->V3AuthVotingInterval;
|
||||
}
|
||||
|
||||
/** Set voting_schedule to hold the timing for the next vote we should be
|
||||
* doing. All type of tor do that because HS subsystem needs the timing as
|
||||
* well to function properly. */
|
||||
|
@ -57,5 +57,6 @@ void dirauth_sched_recalculate_timing(const or_options_t *options,
|
||||
time_t now);
|
||||
|
||||
time_t dirauth_sched_get_next_valid_after_time(void);
|
||||
int dirauth_sched_get_configured_interval(void);
|
||||
|
||||
#endif /* !defined(TOR_VOTING_SCHEDULE_H) */
|
||||
|
Loading…
Reference in New Issue
Block a user