summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2018-04-06 21:05:34 -0500
committerTom Ritter <tom@ritter.vg>2018-04-06 21:05:34 -0500
commit68232ece53be3b1a52cd417ebc39d5581c1836c3 (patch)
tree89d0fa7735198101290c573db797c96164fbe82c
parent447f2575df4d999fb410229225206081c4e53545 (diff)
Add a flag when the Descriptor Time in the Consensus doesn't match a vote's Descriptor Time.
Addresses #24862
-rwxr-xr-xwebsite.py10
1 files changed, 10 insertions, 0 deletions
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):