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 a44ffcb2 authored by juga  's avatar juga 💬

chg: v3bwfile: Exclude relays without observed bw

and without consensus bw from scaling.

Part of #33871, closes #33831.
parent d4fe347c
......@@ -773,6 +773,13 @@ class V3BWLine(object):
desc_bw_obs_last = \
cls.desc_bw_obs_last_from_results(results_recent)
# Exclude also relays without consensus bandwidth nor observed
# bandwidth, since they can't be scaled
if (desc_bw_obs_last is None and consensus_bandwidth is None):
# This reason is not counted, not added in the file, but it will
# have vote = 0
return(cls(node_id, 1), "no_consensus_no_observed_bw")
# For any line not excluded, do not include vote and unmeasured
# KeyValues
del kwargs['vote']
......
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