[tor-commits] [doctor/master] Don't notify when HSDir flag counts are odd

atagar at torproject.org atagar at torproject.org
Sat Feb 17 00:56:55 UTC 2018


commit db1285615a3df6564a7182c84d7edfc684991163
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri Feb 16 16:52:23 2018 -0800

    Don't notify when HSDir flag counts are odd
    
    Suppression requested by Roger...
    
      https://lists.torproject.org/pipermail/tor-dev/2018-February/012943.html
---
 consensus_health_checker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consensus_health_checker.py b/consensus_health_checker.py
index e91e292..5554eee 100755
--- a/consensus_health_checker.py
+++ b/consensus_health_checker.py
@@ -631,7 +631,7 @@ def has_similar_flag_counts(latest_consensus, consensuses, votes):
         authority_flag_count[flag] = authority_flag_count.setdefault(flag, 0) + 1
 
     for flag, count in flag_count.items():
-      if flag == 'BadExit':
+      if flag == 'BadExit' or flag == 'HSDir':
         continue
 
       vote_count = authority_flag_count.get(flag, 0)





More information about the tor-commits mailing list