[tor-bugs] #21102 [Core Tor/Stem]: Shared Random Not Parsing Correctly

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jan 5 19:17:23 UTC 2017


#21102: Shared Random Not Parsing Correctly
---------------------------+------------------------
 Reporter:  tom            |          Owner:  atagar
     Type:  defect         |         Status:  closed
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Normal         |     Resolution:  fixed
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+------------------------

Comment (by tom):

 Thanks this seems to be working now, although I think the properties are
 still present on the vote object itself also? is that intentional?

 {{{
 >>> import stem
 >>> from stem.descriptor import DocumentHandler
 >>> from stem.descriptor.remote import DescriptorDownloader,
 get_authorities
 >>> downloader = DescriptorDownloader()
 >>> query = downloader.get_vote(get_authorities()['moria1'],
 document_handler = DocumentHandler.DOCUMENT, validate = False)
 >>> r = query.run()[0]
 >>> r.is_shared_randomness_participate
 False
 >>> r.directory_authorities[0].is_shared_randomness_participate
 True
 >>> r.shared_randomness_previous_reveal_count
 >>> r.directory_authorities[0].shared_randomness_previous_reveal_count
 6
 >>> r.unknown_properties_should_error_right
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "stem/descriptor/__init__.py", line 661, in __getattr__
     return super(Descriptor, self).__getattribute__(name)
 AttributeError: 'NetworkStatusDocumentV3' object has no attribute
 'unknown_properties_should_error_right'
 }}}

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


More information about the tor-bugs mailing list