From 4d38731e93e927374044fde2730149cb07ac0766 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 6 Sep 2017 11:12:28 -0400 Subject: prop224: Make client and service pick same HSDir With the latest change on how we use the HSDir index, the client and service need to pick their responsible HSDir differently that is depending on if they are before or after a new time period. The overlap mode is active function has been renamed for this and test added. Signed-off-by: David Goulet --- src/or/nodelist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/or/nodelist.c') diff --git a/src/or/nodelist.c b/src/or/nodelist.c index b8baee54f1..2dadfe54a8 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -208,8 +208,7 @@ node_set_hsdir_index(node_t *node, const networkstatus_t *ns) /* We always use the current time period for fetching descs */ fetch_tp = current_time_period_num; - /* Now extract the needed SRVs and time periods for building hsdir indices */ - if (!hs_overlap_mode_is_active(ns, now)) { + if (hs_time_between_tp_and_srv(ns, now)) { fetch_srv = hs_get_current_srv(fetch_tp, ns); store_first_tp = hs_get_previous_time_period_num(0); -- cgit v1.2.3-54-g00ecf