summaryrefslogtreecommitdiff
path: root/src/or/nodelist.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-13 20:16:21 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-08-19 16:28:47 +0300
commit1f7b8012ae9b6226e5853751685c98782a48c0c4 (patch)
treee71f5c0bcaaa7162060c49a6ea726ce6b3ed566a /src/or/nodelist.h
parent43343ec019e24cb3b1d5802d1369ab75ec0e8776 (diff)
downloadtor-1f7b8012ae9b6226e5853751685c98782a48c0c4.tar.gz
tor-1f7b8012ae9b6226e5853751685c98782a48c0c4.zip
prop224: Only upload descriptor if we have good hash ring and SRV.
Make sure we have a live consensus (for SRV) and enough descriptors (for hash ring). Also fix unittests that broke.
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r--src/or/nodelist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h
index 405b79d820..06a08a288c 100644
--- a/src/or/nodelist.h
+++ b/src/or/nodelist.h
@@ -105,7 +105,7 @@ int addrs_in_same_network_family(const tor_addr_t *a1,
* no exits in the consensus, we wait for enough info to create internal
* paths, and should avoid creating exit paths, as they will simply fail.
* We make sure we create all available circuit types at the same time. */
-int router_have_minimum_dir_info(void);
+MOCK_DECL(int, router_have_minimum_dir_info,(void));
/** Set to CONSENSUS_PATH_EXIT if there is at least one exit node
* in the consensus. We update this flag in compute_frac_paths_available if