diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-19 16:00:58 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-08-19 16:29:23 +0300 |
commit | 3e593f09addb210f1da39bd46f5fb904cac4e410 (patch) | |
tree | 2ed59125c449cc8535aac420f8ee6bdbdb49ff4e /src/or/nodelist.h | |
parent | 7823c98a38556237a86c7235d411d7d2237cc2d6 (diff) | |
download | tor-3e593f09addb210f1da39bd46f5fb904cac4e410.tar.gz tor-3e593f09addb210f1da39bd46f5fb904cac4e410.zip |
prop224: Recompute all HSDir indices when we enter overlap mode.
When we enter overlap mode we start using the next hsdir index of
relays. However, we only compute the next hsdir index of relays when we
receive a consensus or their descriptor. This means that there is a
window of time between entering the overlap period and fetching the
consensus where relays have their next hsdir index uninitialized. This
patch fixes this by recomputing all hsdir indices when we first enter
the overlap period.
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r-- | src/or/nodelist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h index 06a08a288c..d16cf0ecf7 100644 --- a/src/or/nodelist.h +++ b/src/or/nodelist.h @@ -28,6 +28,8 @@ void nodelist_remove_routerinfo(routerinfo_t *ri); void nodelist_purge(void); smartlist_t *nodelist_find_nodes_with_microdesc(const microdesc_t *md); +void nodelist_recompute_all_hsdir_indices(void); + void nodelist_free_all(void); void nodelist_assert_ok(void); |