diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-07 14:01:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-11-07 14:01:10 -0500 |
commit | ea5ea5f5542b314d3365a09427cf74340b5093e4 (patch) | |
tree | 31629be3d722b9c8b1cce5d5552572fcf63076cc /src/or/networkstatus.c | |
parent | 91e82baa8d82e147e490922d5447596cdc621054 (diff) | |
parent | c58471325a48f8181d32d45ef75cd23ffd942181 (diff) | |
download | tor-ea5ea5f5542b314d3365a09427cf74340b5093e4.tar.gz tor-ea5ea5f5542b314d3365a09427cf74340b5093e4.zip |
Merge branch 'maint-0.3.2'
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index abcd4d8658..e4a6a76749 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1939,13 +1939,17 @@ networkstatus_set_current_consensus(const char *consensus, } if (is_usable_flavor) { + /* The "current" consensus has just been set and it is a usable flavor so + * 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); + nodelist_set_consensus(c); /* XXXXNM Microdescs: needs a non-ns variant. ???? NM*/ update_consensus_networkstatus_fetch_time(now); - dirvote_recalculate_timing(options, now); - /* Update ewma and adjust policy if needed; first cache the old value */ old_ewma_enabled = cell_ewma_enabled(); /* Change the cell EWMA settings */ |