diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-24 10:06:55 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-24 10:07:09 -0500 |
commit | 4fb6d8675f7fd70e788d42b52da3f044bce8ead2 (patch) | |
tree | 0150006e7209fb9f6fc2f8cc4aaec7c888340c08 /src/feature/hs_common | |
parent | b7ba558f56da643857884761f6a52262c7aa51b8 (diff) | |
download | tor-4fb6d8675f7fd70e788d42b52da3f044bce8ead2.tar.gz tor-4fb6d8675f7fd70e788d42b52da3f044bce8ead2.zip |
Rename voting_schedule_*() functions.
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
voting_schedule_recalculate_timing dirauth_sched_recalculate_timing \
voting_schedule_get_start_of_next_interval voting_sched_get_start_of_interval_after \
voting_schedule_get_next_valid_after_time dirauth_sched_get_next_valid_after_time
Diffstat (limited to 'src/feature/hs_common')
-rw-r--r-- | src/feature/hs_common/shared_random_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/hs_common/shared_random_client.c b/src/feature/hs_common/shared_random_client.c index 0881bf8330..b30d68fb43 100644 --- a/src/feature/hs_common/shared_random_client.c +++ b/src/feature/hs_common/shared_random_client.c @@ -63,10 +63,10 @@ get_start_time_of_current_round(void) const or_options_t *options = get_options(); int voting_interval = get_voting_interval(); /* First, get the start time of the next round */ - time_t next_start = voting_schedule_get_next_valid_after_time(); + time_t next_start = dirauth_sched_get_next_valid_after_time(); /* Now roll back next_start by a voting interval to find the start time of the current round. */ - time_t curr_start = voting_schedule_get_start_of_next_interval( + time_t curr_start = voting_sched_get_start_of_interval_after( next_start - voting_interval - 1, voting_interval, options->TestingV3AuthVotingStartOffset); |