[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 6d161a071ceaa39265947a33d2e1054a5ad3c62d
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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'
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits