diff options
author | David Goulet <dgoulet@torproject.org> | 2018-05-01 11:25:25 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-05-01 11:45:34 -0400 |
commit | 2d79d0155e3bdf42c2b8ff450d4d4bd85ee17c72 (patch) | |
tree | f6807a37b26fba453eb0f1db4c484906ebbafb5d /src/or/networkstatus.c | |
parent | e504b1b35831e9d18be7b89ab471705b41092606 (diff) | |
download | tor-2d79d0155e3bdf42c2b8ff450d4d4bd85ee17c72.tar.gz tor-2d79d0155e3bdf42c2b8ff450d4d4bd85ee17c72.zip |
vote: Move dirvote_recalculate_timing() to voting_schedule.c
By doing so, it is renamed to voting_schedule_recalculate_timing(). This
required a lot of changes to include voting_schedule.h everywhere that this
function was used.
This effectively now makes voting_schedule.{c|h} not include dirauth/dirvote.h
for that symbol and thus no dependency on the dirauth module anymore.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 99f1490203..ac3e94e884 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -67,6 +67,7 @@ #include "transports.h" #include "torcert.h" #include "channelpadding.h" +#include "voting_schedule.h" #include "dirauth/dirvote.h" @@ -2014,7 +2015,7 @@ networkstatus_set_current_consensus(const char *consensus, * the first thing we need to do is recalculate the voting schedule static * object so we can use the timings in there needed by some subsystems * such as hidden service and shared random. */ - dirvote_recalculate_timing(options, now); + voting_schedule_recalculate_timing(options, now); reschedule_dirvote(options); nodelist_set_consensus(c); |