[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [doctor/master] Don't send BadExit notice for lack of votes



commit c96d541e087ba46f125bc780a48cce05de2234b3
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sat Aug 13 09:41:57 2016 -0700

    Don't send BadExit notice for lack of votes
    
    If the only disagreement about a BadExit is due to lacking a vote then don't
    send a notice. There's already other notices about lacking a vote.
---
 consensus_health_checker.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/consensus_health_checker.py b/consensus_health_checker.py
index e08e57d..a2859e9 100755
--- a/consensus_health_checker.py
+++ b/consensus_health_checker.py
@@ -674,6 +674,9 @@ def bad_exits_in_sync(latest_consensus, consensuses, votes):
       else:
         not_in_vote.append(authority)
 
+    if not without_flag:
+      continue  # skip notice if the only disagreement is due to not having a vote
+
     # If this relay's missing from a consensus then don't bother. It gets
     # negligable traffic and is likely part of normal network churn.
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits