Only update guard status (usable / not usable) once we have

enough directory information. This was causing us to always pick
two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
causing us to discard all our guards on startup if we hadn't been
running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.


svn:r12570
This commit is contained in:
Roger Dingledine
2007-11-26 02:18:57 +00:00
parent 17393b8359
commit 91bb09cb28
5 changed files with 37 additions and 18 deletions
-1
View File
@@ -1423,7 +1423,6 @@ routers_update_all_from_networkstatus(time_t now, int dir_version)
ri->cache_info.routerlist_index = ri_sl_idx);
if (rl->old_routers)
signed_descs_update_status_from_consensus_networkstatus(rl->old_routers);
entry_guards_compute_status();
me = router_get_my_routerinfo();
if (me && !have_warned_about_invalid_status) {