Commit 3ff545c8 authored by juga's avatar juga
Browse files

fixup! fix: relaylist: Stop measuring relays not in the consenus

parent 377ef773
Pipeline #2080 passed with stage
in 51 minutes
......@@ -14,7 +14,7 @@ from ..globals import (
MAX_RECENT_PRIORITY_LIST_COUNT,
MEASUREMENTS_PERIOD
)
from ..util import timestamp, timestamps
from ..util import timestamps
log = logging.getLogger(__name__)
......@@ -250,12 +250,6 @@ class Relay:
def relay_recent_priority_list_count(self):
return len(self.relay_recent_priority_list)
def is_old(self):
"""Whether the last consensus seen for this relay is older than the
measurement period.
"""
return timestamp.is_old(self.last_consensus_timestamp)
# XXX: tech-debt: replace `_desc` attr by a a `dequee` of the last
# descriptors seen for this relay and the timestamp.
def update_server_descriptor(self, server_descriptor):
......
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