aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-11-09 08:49:07 -0500
committerNick Mathewson <nickm@torproject.org>2021-11-09 08:57:03 -0500
commitdb7d067ab178e90163bd013c3892ca707a846433 (patch)
tree91fbaeb6c2cf8ff9cfecc54e4070c5b39e351cfd /src/feature/nodelist
parent8345b3bd92fb126a65ee096914f84f512d20614a (diff)
downloadtor-db7d067ab178e90163bd013c3892ca707a846433.tar.gz
tor-db7d067ab178e90163bd013c3892ca707a846433.zip
Retain all routerinfos listed in the consensus.
Previously we'd look at the routerstatus published_on field when deciding what to dump, which really has no point. If something's in the consensus with an ancient published date, then we do want to keep it.
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r--src/feature/nodelist/routerlist.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/feature/nodelist/routerlist.c b/src/feature/nodelist/routerlist.c
index c00f7ffb26..2d6ae13711 100644
--- a/src/feature/nodelist/routerlist.c
+++ b/src/feature/nodelist/routerlist.c
@@ -1924,11 +1924,9 @@ routerlist_remove_old_routers(void)
retain = digestset_new(n_max_retain);
}
- cutoff = now - OLD_ROUTER_DESC_MAX_AGE;
/* Retain anything listed in the consensus. */
if (consensus) {
SMARTLIST_FOREACH(consensus->routerstatus_list, routerstatus_t *, rs,
- if (rs->published_on >= cutoff)
digestset_add(retain, rs->descriptor_digest));
}