aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-17 11:38:24 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-17 11:38:24 +1100
commit9882a88b7457c48fb5ce48259a862593e7a2b309 (patch)
tree40b52ab126eb79030cfe27ebcad5bf4c5cd23840
parent3317cd3a1f4e3a7883bf9a5eba3f9a13097fe437 (diff)
downloadtor-9882a88b7457c48fb5ce48259a862593e7a2b309.tar.gz
tor-9882a88b7457c48fb5ce48259a862593e7a2b309.zip
Prop210: Only clients benefit from multiple consensus downloads
Anything that's a server can afford to wait for a few minutes. (Except for bridge relays, which act like clients.)
-rw-r--r--src/or/networkstatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 173c109d60..584569a108 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1286,14 +1286,14 @@ networkstatus_consensus_is_boostrapping(time_t now)
}
/** Check if we can use multiple directories for a consensus download.
- * Only clients (including bridges, but excluding bridge clients) benefit
+ * Only clients (including bridge relays, which act like clients) benefit
* from multiple simultaneous consensus downloads. */
int
networkstatus_consensus_can_use_multiple_directories(
const or_options_t *options)
{
/* If we are a client, bridge, bridge client, or hidden service */
- return (!directory_fetches_from_authorities(options));
+ return !public_server_mode(options);
}
/** Check if we can use fallback directory mirrors for a consensus download.