diff options
author | Roger Dingledine <arma@torproject.org> | 2006-06-09 02:45:39 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-06-09 02:45:39 +0000 |
commit | a91be49402c0ace36ab5eca22f55580f9895671d (patch) | |
tree | afdd2d44e83ec11cca431d0e23eb5fa081c492c5 /src | |
parent | 11dcb7f4ae6a2c316e257de44c1b893f49ff311c (diff) | |
download | tor-a91be49402c0ace36ab5eca22f55580f9895671d.tar.gz tor-a91be49402c0ace36ab5eca22f55580f9895671d.zip |
fix a bootstrapping check we ignored that prevents us from running
with only one dir authority.
svn:r6570
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index c0e138823b..bbed15462c 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3442,10 +3442,8 @@ update_router_descriptor_client_downloads(time_t now) return; } - /* XXX here's another magic 2 that probably should be replaced - * by <= smartlist_len(trusted_dir_servers)/2 - * or by a function returning same. -- weasel */ - if (networkstatus_list && smartlist_len(networkstatus_list) < 2) { + if (networkstatus_list && smartlist_len(networkstatus_list) <= + smartlist_len(trusted_dir_servers)/2) { log_info(LD_DIR, "Not enough networkstatus documents to launch requests."); } |