[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [depictor/master] Add a flag when the Descriptor Time in the Consensus doesn't match a vote's Descriptor Time.
commit 68232ece53be3b1a52cd417ebc39d5581c1836c3
Author: Tom Ritter <tom@xxxxxxxxx>
Date: Fri Apr 6 21:05:34 2018 -0500
Add a flag when the Descriptor Time in the Consensus doesn't match a vote's Descriptor Time.
Addresses #24862
---
website.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/website.py b/website.py
index 2baba4d..da9690f 100755
--- a/website.py
+++ b/website.py
@@ -146,6 +146,16 @@ class WebsiteWriter:
if self.consensus.routers[r].is_unmeasured:
self.consensus.routers[r].flags.append('Unmeasured')
+ # Add a DescriptorConsensusMismatch flag
+ self.consensus.known_flags.append('DescriptorMismatch')
+ for dirauth_nickname in self.known_authorities:
+ if dirauth_nickname in self.votes:
+ vote = self.votes[dirauth_nickname]
+ vote.known_flags.append('DescriptorMismatch')
+ for r in vote.routers:
+ if r in self.consensus.routers and self.consensus.routers[r].published != vote.routers[r].published:
+ vote.routers[r].flags.append('DescriptorMismatch')
+
#-----------------------------------------------------------------------------------------
def _write_page_header(self, include_relay_info):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits