#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
_______________________________________________
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Reply via email to