diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-01-31 12:31:43 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-31 12:31:43 -0500 |
commit | 746d959100f0275e3ad4442e89901796f669413e (patch) | |
tree | a38157b8df08bef124337e8919699c04428ae336 /src/or/entrynodes.h | |
parent | 02da24f8e5b2ce34da941cc25ce9808b447065ac (diff) | |
download | tor-746d959100f0275e3ad4442e89901796f669413e.tar.gz tor-746d959100f0275e3ad4442e89901796f669413e.zip |
Don't build circuits till primary guards have descriptors
In addition to not wanting to build circuits until we can see most
of the paths in the network, and in addition to not wanting to build
circuits until we have a consensus ... we shouldn't build circuits
till all of our (in-use) primary guards have descriptors that we can
use for them.
This is another bug 21242 fix.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r-- | src/or/entrynodes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index 0c29292c17..f02901f5d7 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -482,6 +482,7 @@ STATIC entry_guard_t *get_sampled_guard_with_id(guard_selection_t *gs, const uint8_t *rsa_id); MOCK_DECL(STATIC time_t, randomize_time, (time_t now, time_t max_backdate)); + STATIC entry_guard_t *entry_guard_add_to_sample(guard_selection_t *gs, const node_t *node); STATIC entry_guard_t *entry_guards_expand_sample(guard_selection_t *gs); @@ -566,6 +567,10 @@ int getinfo_helper_entry_guards(control_connection_t *conn, int entries_known_but_down(const or_options_t *options); void entries_retry_all(const or_options_t *options); +int guard_selection_have_enough_dir_info_to_build_circuits( + guard_selection_t *gs); +int entry_guards_have_enough_dir_info_to_build_circuits(void); + void entry_guards_free_all(void); double pathbias_get_close_success_count(entry_guard_t *guard); |