summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-03-29 09:21:23 +0000
committerRoger Dingledine <arma@torproject.org>2006-03-29 09:21:23 +0000
commit4c996757ae3ddbd5156ae6e2b489f82e17eb2096 (patch)
tree6ef4efcbc92c84dcbae7526013e86c36db758269 /src/or/dirserv.c
parentdb1209a852ac7ecebe26eab40c2da8fa19e3468f (diff)
downloadtor-4c996757ae3ddbd5156ae6e2b489f82e17eb2096.tar.gz
tor-4c996757ae3ddbd5156ae6e2b489f82e17eb2096.zip
We can remove about 30% of the v1 directory bulk by taking
out down or invalid nodes. We should do this once we're ready. svn:r6273
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index f73adf9e11..432b4364e6 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -752,6 +752,10 @@ live_enough_for_v1_dir(routerinfo_t *ri, time_t now)
time_t cutoff = now - ROUTER_MAX_AGE_TO_PUBLISH;
if (ri->cache_info.published_on < cutoff)
return 0;
+#if 0
+ if (!ri->is_running || !ri->is_valid)
+ return 0;
+#endif
return 1;
}