aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-01-12 10:55:21 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-01-12 10:55:21 -0500
commit9b59ede8d342a11d7949a4793b7d456de2a3ff5d (patch)
treeefa10799bb4d2778b73a82358d9039a48bed1524 /src/feature/nodelist
parentd1f474160638e10478a2ab14fb93b1e8b6a720a2 (diff)
parentb3652f2104c880bf626cb4e97e6088bca5a1571f (diff)
downloadtor-9b59ede8d342a11d7949a4793b7d456de2a3ff5d.tar.gz
tor-9b59ede8d342a11d7949a4793b7d456de2a3ff5d.zip
Merge branch 'ticket40237_044_01' into ticket40237_045_01
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r--src/feature/nodelist/nodelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c
index f263d0fe7c..cfa8b69f81 100644
--- a/src/feature/nodelist/nodelist.c
+++ b/src/feature/nodelist/nodelist.c
@@ -362,7 +362,7 @@ node_set_hsdir_index(node_t *node, const networkstatus_t *ns)
tor_assert(node);
tor_assert(ns);
- if (!networkstatus_is_live(ns, now)) {
+ if (!networkstatus_consensus_reasonably_live(ns, now)) {
static struct ratelim_t live_consensus_ratelim = RATELIM_INIT(30 * 60);
log_fn_ratelim(&live_consensus_ratelim, LOG_INFO, LD_GENERAL,
"Not setting hsdir index with a non-live consensus.");