Commit a44ffcb2 authored by juga's avatar juga
Browse files

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 = \
# 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']
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