Commit aa6b79d3 authored by juga's avatar juga
Browse files

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 a49cf702
...@@ -71,7 +71,11 @@ class Relay: ...@@ -71,7 +71,11 @@ class Relay:
self.relay_in_recent_consensus = timestamps.DateTimeSeq( self.relay_in_recent_consensus = timestamps.DateTimeSeq(
) )
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.
# The number of times that a relay is "prioritized" to be measured. # The number of times that a relay is "prioritized" to be measured.
# It is incremented in ``RelayPrioritizer.best_priority`` # It is incremented in ``RelayPrioritizer.best_priority``
self.relay_recent_priority_list = timestamps.DateTimeSeq( self.relay_recent_priority_list = timestamps.DateTimeSeq(
Supports Markdown
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