diff options
author | David Goulet <dgoulet@torproject.org> | 2021-01-12 10:54:31 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-01-12 10:54:31 -0500 |
commit | b3652f2104c880bf626cb4e97e6088bca5a1571f (patch) | |
tree | 6cb537a2bc8f367f626f3dd728eb626d4041617d /src/feature/nodelist | |
parent | 5a822b462aaa8cf3cd749c253bb1e9e5f4f37fa2 (diff) | |
parent | 0485c7ddba8c3474d1be8972caa9505b09d65644 (diff) | |
download | tor-b3652f2104c880bf626cb4e97e6088bca5a1571f.tar.gz tor-b3652f2104c880bf626cb4e97e6088bca5a1571f.zip |
Merge branch 'ticket40237_043_01' into ticket40237_044_01
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r-- | src/feature/nodelist/nodelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c index 7454f342f9..6ee1d11cae 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."); |