aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-19 16:26:46 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-08-19 16:28:48 +0300
commit7823c98a38556237a86c7235d411d7d2237cc2d6 (patch)
tree175f51c662f55ce9579fd1af186151b515e15429 /src/or/nodelist.c
parent26c85fcc863678c06cc79ec1a58bd6c504d3321a (diff)
downloadtor-7823c98a38556237a86c7235d411d7d2237cc2d6.tar.gz
tor-7823c98a38556237a86c7235d411d7d2237cc2d6.zip
prop224: Improve descriptor reupload logic.
We want to reupload our descriptor if its set of responsible HSDirs changed to minimize reachability issues. This patch adds a callback everytime we get new dirinfo which checks if the hash ring changed and reuploads descriptor if needed.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index a9b77262ce..d75b386e01 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -1789,6 +1789,7 @@ router_dir_info_changed(void)
{
need_to_update_have_min_dir_info = 1;
rend_hsdir_routers_changed();
+ hs_hsdir_set_changed_consider_reupload();
}
/** Return a string describing what we're missing before we have enough