[tor-bugs] #20284 [Core Tor/Tor]: consensus weight case 2b3 does not follow dir-spec
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Oct 4 00:10:47 UTC 2016
#20284: consensus weight case 2b3 does not follow dir-spec
------------------------------+-----------------
Reporter: pastly | Owner:
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+-----------------
[https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n2681 dir-
spec] says the following.
{{{
If M > T/3, then the Wmd weight above will become negative. Set it to 0
in this case:
Wmd = 0
Wgd = weight_scale - Wed
}}}
The code dutifully sets `Wmd` to 0, but neglects `Wgd`.
I assume the spec is correct and the intended behavior. Branch incoming
once I get a ticket number.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20284>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list