summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-06 15:37:01 -0500
committerNick Mathewson <nickm@torproject.org>2017-03-06 15:37:01 -0500
commit85cf6dcba3693bbd1264e5fae05346ddf1909b85 (patch)
tree3983f81ee066d826702c40b4d0d212dc78c63aee /src/or/networkstatus.c
parent75492598b2fa595c25c41212d3b2714e59efdcc2 (diff)
downloadtor-85cf6dcba3693bbd1264e5fae05346ddf1909b85.tar.gz
tor-85cf6dcba3693bbd1264e5fae05346ddf1909b85.zip
Stop declining to download microdescs with future published times.
This change is the only one necessary to allow future versions of the microdescriptor consensus to replace every 'published' date with e.g. 2038-01-01 00:00:00; this will save 50-75% in compressed microdescriptor diff size, which is quite significant. This commit is a minimal change for 0.2.9; future series will reduce the use of the 'published' date even more. Implements part of ticket 21642; implements part of proposal 275.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 2d39c90380..991cf80121 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2360,11 +2360,6 @@ client_would_use_router(const routerstatus_t *rs, time_t now,
* But, if we want to have a complete list, fetch it anyway. */
return 0;
}
- if (rs->published_on + options->TestingEstimatedDescriptorPropagationTime
- > now) {
- /* Most caches probably don't have this descriptor yet. */
- return 0;
- }
if (rs->published_on + OLD_ROUTER_DESC_MAX_AGE < now) {
/* We'd drop it immediately for being too old. */
return 0;