Commit 68232ece authored by Tom Ritter's avatar Tom Ritter
Browse files

Add a flag when the Descriptor Time in the Consensus doesn't match a vote's Descriptor Time.

Addresses #24862
parent 447f2575
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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):