diff options
| author | Tom Ritter <tom@ritter.vg> | 2018-04-06 21:05:34 -0500 |
|---|---|---|
| committer | Tom Ritter <tom@ritter.vg> | 2018-04-06 21:05:34 -0500 |
| commit | 68232ece53be3b1a52cd417ebc39d5581c1836c3 (patch) | |
| tree | 89d0fa7735198101290c573db797c96164fbe82c | |
| parent | 447f2575df4d999fb410229225206081c4e53545 (diff) | |
Add a flag when the Descriptor Time in the Consensus doesn't match a vote's Descriptor Time.
Addresses #24862
| -rwxr-xr-x | website.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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): |
