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 51eb5004 authored by juga  's avatar juga
Browse files

fix: relaylist: Update relay status before consensus

Update relay status before updating the consensus timestamps
Timestamps that are not old yet were getting removed because the
document.valid_after timestamp was still the one from the previous
consensus.

Closes #33570.
parent bbb59b1e
......@@ -456,9 +456,9 @@ class RelayList:
# If a relay in the previous consensus and is in the current
# one, update its timestamp, router status and descriptor.
fp = r.fingerprint
r.update_consensus_timestamps(timestamp)
# new_relays_dict[fp] is the router status.
r.update_router_status(new_relays_dict[fp])
r.update_consensus_timestamps(timestamp)
try:
descriptor = c.get_server_descriptor(fp, default=None)
except (DescriptorUnavailable, ControllerError) as e:
......
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