[tor-bugs] #20765 [Metrics/metrics-lib]: adapt to new lines in votes and consensus and make the adaption to protocol changes easier

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 25 12:44:18 UTC 2016


#20765: adapt to new lines in votes and consensus and make the adaption to protocol
changes easier
-------------------------------------+-------------------------------
     Reporter:  iwakeh               |      Owner:  metrics-team
         Type:  enhancement          |     Status:  new
     Priority:  Medium               |  Milestone:  metrics-lib 1.6.0
    Component:  Metrics/metrics-lib  |    Version:
     Severity:  Normal               |   Keywords:
Actual Points:                       |  Parent ID:
       Points:                       |   Reviewer:
      Sponsor:                       |
-------------------------------------+-------------------------------
 New protocol versions 23 and 25 introduce new lines for votes and
 consensus; e.g. [https://collector.sky-ip.org/recent/relay-
 descriptors/votes/2016-11-25-12-00-00-vote-
 D586D18309DED4CD6D57C18FDB97EFA96D330566-5858C65AC36DE37F3CA8EE03059A8730A97D31B8
 vote from moria]

 {{{
 ...
 recommended-relay-protocols Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSIntro=3
 HSRend=1 Link=4 LinkAuth=1 Microdesc=1-2 Relay=2
 recommended-client-protocols Cons=1-2 Desc=1-2 DirCache=1 HSDir=1
 HSIntro=3 HSRend=1 Link=4 LinkAuth=1 Microdesc=1-2 Relay=2
 required-relay-protocols Cons=1 Desc=1 DirCache=1 HSDir=1 HSIntro=3
 HSRend=1 Link=3-4 LinkAuth=1 Microdesc=1 Relay=1-2
 required-client-protocols Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSIntro=3
 HSRend=1 Link=4 LinkAuth=1 Microdesc=1-2 Relay=2
 ...
 shared-rand-participate
 shared-rand-commit 1 sha3-256 D586D18309DED4CD6D57C18FDB97EFA96D330566
 AAAAAFg3fwANZSmhaatp83nojq97N/eLHSCShOFJqiR1Skc9lO/dXA==
 AAAAAFg3fwDxNhND8l9+/S4fxn+yeCKNgaZp3yJ8qWSkg8NICmZ+PA==
 }}}

 These should not be treated as unknown lines by metrics-lib.

 In addition, the process of recognizing lines should be improved to make
 accommodation of new protocol versions a lot easier, ideally without code
 changes, i.e. w/o having to compile metrics-lib for such changes.

 (should be tackled together with #17861, #19640, #19607)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20765>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list