|
@@ -83,7 +83,11 @@ static consensus_waiting_for_certs_t
|
|
|
* before the current consensus becomes invalid. */
|
|
|
static time_t time_to_download_next_consensus[N_CONSENSUS_FLAVORS];
|
|
|
|
|
|
-static download_status_t consensus_dl_status[N_CONSENSUS_FLAVORS];
|
|
|
+static download_status_t consensus_dl_status[N_CONSENSUS_FLAVORS] =
|
|
|
+ {
|
|
|
+ { 0, 0, DL_SCHED_CONSENSUS },
|
|
|
+ { 0, 0, DL_SCHED_CONSENSUS },
|
|
|
+ };
|
|
|
|
|
|
|
|
|
* listed by the authorities. */
|
|
@@ -754,6 +758,9 @@ update_consensus_networkstatus_downloads(time_t now)
|
|
|
|
|
|
resource = networkstatus_get_flavor_name(i);
|
|
|
|
|
|
+
|
|
|
+ tor_assert(consensus_dl_status[i].schedule == DL_SCHED_CONSENSUS);
|
|
|
+
|
|
|
if (!download_status_is_ready(&consensus_dl_status[i], now,
|
|
|
options->TestingConsensusMaxDownloadTries))
|
|
|
continue;
|