aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
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.c
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.c')
-rw-r--r--src/or/nodelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 0fcaea626d..a9b77262ce 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -1741,8 +1741,8 @@ static char dir_info_status[512] = "";
* no exits in the consensus."
* To obtain the final weighted bandwidth, we multiply the
* weighted bandwidth fraction for each position (guard, middle, exit). */
-int
-router_have_minimum_dir_info(void)
+MOCK_IMPL(int,
+router_have_minimum_dir_info,(void))
{
static int logged_delay=0;
const char *delay_fetches_msg = NULL;