mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
r11787@catbus: nickm | 2007-02-12 21:01:34 -0500
Always remove expired routers and networkstatus docs before checking whether we have enough information to build circuits. (Fixes bug 373.) svn:r9575
This commit is contained in:
parent
3c691b9da6
commit
d9c095be3e
@ -58,6 +58,8 @@ Changes in version 0.1.2.8-alpha - 2007-??-??
|
||||
- Do not warn when individual nodes in the configuration's EntryNodes,
|
||||
ExitNodes (etc) are down: warn only when all possible nodes are down.
|
||||
(Fixes bug 348.)
|
||||
- Always remove expired routers and networkstatus docs before checking
|
||||
whether we have enough information to build circuits. (Fixes bug 373)
|
||||
|
||||
|
||||
Changes in version 0.1.2.7-alpha - 2007-02-06
|
||||
|
@ -4154,10 +4154,14 @@ update_router_have_minimum_dir_info(void)
|
||||
{
|
||||
int tot = 0, num_running = 0;
|
||||
int n_ns, n_authorities, res, avg;
|
||||
time_t now = time(NULL);
|
||||
if (!networkstatus_list || !routerlist) {
|
||||
res = 0;
|
||||
goto done;
|
||||
}
|
||||
routerlist_remove_old_routers();
|
||||
networkstatus_list_clean(now);
|
||||
|
||||
n_authorities = get_n_v2_authorities();
|
||||
n_ns = smartlist_len(networkstatus_list);
|
||||
if (n_ns<=n_authorities/2) {
|
||||
|
Loading…
Reference in New Issue
Block a user