[tor-commits] [stem/master] Add todo comment for taking advantage of 'GETINFO desc/download-enabled'

atagar at torproject.org atagar at torproject.org
Mon Jul 3 22:37:36 UTC 2017


commit 6d161a071ceaa39265947a33d2e1054a5ad3c62d
Author: Damian Johnson <atagar at torproject.org>
Date:   Mon Jul 3 11:43:58 2017 -0700

    Add todo comment for taking advantage of 'GETINFO desc/download-enabled'
    
    It's too new to really take advantage of right now, but at some point it'll let
    us drop this helper.
---
 stem/control.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stem/control.py b/stem/control.py
index 8c01d94..e7d7977 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -1820,6 +1820,11 @@ class Controller(BaseController):
     Checks to see if tor server descriptors should be available or not.
     """
 
+    # TODO: Replace with a 'GETINFO desc/download-enabled' request when they're
+    # widely available...
+    #
+    #   https://gitweb.torproject.org/torspec.git/commit/?id=378699c
+
     return self.get_version() < stem.version.Requirement.MICRODESCRIPTOR_IS_DEFAULT or \
            self.get_conf('UseMicrodescriptors', None) == '0'
 





More information about the tor-commits mailing list