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

[tor-commits] [stem/master] Checking constraints on the usecreatefast property



commit ae6d97837a30066264c8ed02f916e7529c5f8349
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sun Nov 3 13:12:33 2013 -0800

    Checking constraints on the usecreatefast property
    
    New consensus property from...
    
      https://gitweb.torproject.org/torspec.git/commitdiff/6b55759
---
 stem/descriptor/networkstatus.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py
index b5eb5b7..b3a0cc7 100644
--- a/stem/descriptor/networkstatus.py
+++ b/stem/descriptor/networkstatus.py
@@ -128,6 +128,7 @@ DEFAULT_PARAMS = {
   "cbtmintimeout": 2000,
   "cbtinitialtimeout": 60000,
   "Support022HiddenServices": 1,
+  "usecreatefast": 1,
 }
 
 # KeyCertificate fields, tuple is of the form...
@@ -824,6 +825,8 @@ class _DocumentHeader(object):
         minimum, maximum = 0, 1
       elif key == "Support022HiddenServices":
         minimum, maximum = 0, 1
+      elif key == "usecreatefast":
+        minimum, maximum = 0, 1
 
       if value < minimum or value > maximum:
         raise ValueError("'%s' value on the params line must be in the range of %i - %i, was %i" % (key, minimum, maximum, value))



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