From 1f7b8012ae9b6226e5853751685c98782a48c0c4 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Sun, 13 Aug 2017 20:16:21 +0300 Subject: 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. --- src/or/nodelist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/nodelist.c') 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; -- cgit v1.2.3-54-g00ecf