[tor-bugs] #16455 [Stem]: not all get_consensus() relays are in get_server_descriptors()

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jun 27 19:45:44 UTC 2015


#16455: not all get_consensus() relays are in get_server_descriptors()
-------------------------------------------------+-------------------------
 Reporter:  cypherpunks                          |          Owner:  atagar
     Type:  defect                               |         Status:  new
 Priority:  normal                               |      Milestone:
Component:  Stem                                 |        Version:
 Keywords:  get_consensus                        |  Actual Points:
  get_server_descriptors mismatch                |         Points:
Parent ID:                                       |
-------------------------------------------------+-------------------------
 The reverse is to expected and it's often up to 1000 relays.
 However, the mismatch in this case is often anywhere from 1 to 100 relays.


 How to replicate:

 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!python
 serverdescriptors_dict = dict((str(x.fingerprint), x) for x in
 DescriptorDownloader().get_server_descriptors().run())
 consensus_list = [x for x in DescriptorDownloader().get_consensus().run()]

 mismatch_count = len([x.fingerprint for x in consensus_list if
 x.fingerprint not in serverdescriptors_dict])
   }}}
 }}}


 Here are the results from multiple runs:

 88
 16
 91
 1
 1
 86
 1
 88
 90
 90
 17

 Unclear where this bug is, it could be in the TOR protocol itself perhaps.

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


More information about the tor-bugs mailing list