aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/nodelist.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-01-28 12:11:33 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-01-28 12:11:33 -0500
commit5c89197c9f197f39d18872e508635cd4864566aa (patch)
tree3702fc92ed2d4e0cc9e8df35bc709121fc49cabb /src/feature/nodelist/nodelist.c
parent6186288eb639e7600c9d7ab482135d44ed78fe21 (diff)
parent0485c7ddba8c3474d1be8972caa9505b09d65644 (diff)
downloadtor-5c89197c9f197f39d18872e508635cd4864566aa.tar.gz
tor-5c89197c9f197f39d18872e508635cd4864566aa.zip
Merge branch 'tor-gitlab/mr/255' into maint-0.4.3
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.");