aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/nodelist.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-01-12 10:46:25 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-01-12 10:46:25 -0500
commit60da5d62225c975842ef57195b7243baa7033acb (patch)
treec355fe467bd86c209bc6f75c6eb5fec367fb0568 /src/feature/nodelist/nodelist.c
parent4b39f46a611ff48ceb7ea212dbcdb2e5b6d26d3b (diff)
parent04b0263974c7ad1327e7a193884cf31d55f7949a (diff)
downloadtor-60da5d62225c975842ef57195b7243baa7033acb.tar.gz
tor-60da5d62225c975842ef57195b7243baa7033acb.zip
Merge branch 'ticket40237_035_01' into ticket40237_043_01
Diffstat (limited to 'src/feature/nodelist/nodelist.c')
-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 b7c7552561..6c7fd6d0f9 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.");