mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Comment updates from review.
This commit is contained in:
parent
c705c8cf1b
commit
9a7b10e23f
@ -3,9 +3,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file voting_schedule.c
|
* \file voting_schedule.c
|
||||||
* \brief This file contains functions that are from the directory authority
|
* \brief Compute information about our voting schedule as a directory
|
||||||
* subsystem related to voting specifically but used by many part of
|
* authority.
|
||||||
* tor. The full feature is built as part of the dirauth module.
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "feature/dirauth/voting_schedule.h"
|
#include "feature/dirauth/voting_schedule.h"
|
||||||
|
@ -233,8 +233,10 @@ sr_state_get_start_time_of_current_protocol_run(void)
|
|||||||
time_t beginning_of_curr_round;
|
time_t beginning_of_curr_round;
|
||||||
|
|
||||||
/* This function is not used for voting purposes, so if we have a live
|
/* This function is not used for voting purposes, so if we have a live
|
||||||
consensus, use its valid-after as the beginning of the current round,
|
consensus, use its valid-after as the beginning of the current round.
|
||||||
otherwise resort to the voting schedule which should always exist. */
|
If we have no consensus but we're an authority, use our own
|
||||||
|
schedule. Otherwise, we have a bug somewhere, so we fall back to the
|
||||||
|
default voting interval. */
|
||||||
networkstatus_t *ns = networkstatus_get_live_consensus(approx_time());
|
networkstatus_t *ns = networkstatus_get_live_consensus(approx_time());
|
||||||
if (ns) {
|
if (ns) {
|
||||||
beginning_of_curr_round = ns->valid_after;
|
beginning_of_curr_round = ns->valid_after;
|
||||||
|
Loading…
Reference in New Issue
Block a user