Remove about 30% of the v1 directory bulk by not including down or

invalid nodes.

This will make exitlist's running on v1 not very good. I feel sorry for
them, but not as sorry as I feel for the directory mirrors.


svn:r6332
This commit is contained in:
Roger Dingledine 2006-04-09 01:00:24 +00:00
parent d48cdbe2e0
commit 0871f4ef90

View File

@ -752,10 +752,8 @@ live_enough_for_v1_dir(routerinfo_t *ri, time_t now)
time_t cutoff = now - ROUTER_MAX_AGE_TO_PUBLISH; time_t cutoff = now - ROUTER_MAX_AGE_TO_PUBLISH;
if (ri->cache_info.published_on < cutoff) if (ri->cache_info.published_on < cutoff)
return 0; return 0;
#if 0
if (!ri->is_running || !ri->is_valid) if (!ri->is_running || !ri->is_valid)
return 0; return 0;
#endif
return 1; return 1;
} }