GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 900e2eaa authored by juga  's avatar juga

fix: relalist: Use the consensus timestamp

to the relay consensus timestamps list, so that it can be
tested it was in a concrete consensus.
parent 4bd80539
Pipeline #3509 passed with stage
in 24 minutes and 47 seconds
......@@ -71,7 +71,11 @@ class Relay:
self.relay_in_recent_consensus = timestamps.DateTimeSeq(
[], MAX_RECENT_CONSENSUS_COUNT
)
self.update_relay_in_recent_consensus()
# Use the same timestamp as the consensus, so that it can be tested
# that the relay was in a consensus using this timestamp.
# Note that this doesn't change the number of consensus the relay was
# in.
self.update_relay_in_recent_consensus(timestamp)
# The number of times that a relay is "prioritized" to be measured.
# It is incremented in ``RelayPrioritizer.best_priority``
self.relay_recent_priority_list = timestamps.DateTimeSeq(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment