[tor-commits] [doctor/master] Don't send BadExit notice for lack of votes
atagar at torproject.org
atagar at torproject.org
Sat Aug 13 16:53:52 UTC 2016
commit c96d541e087ba46f125bc780a48cce05de2234b3
Author: Damian Johnson <atagar at torproject.org>
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.
More information about the tor-commits
mailing list