[tor-commits] [stem/master] Proposal 140 parameters (consensus diffs)

atagar at torproject.org atagar at torproject.org
Tue May 16 17:10:50 UTC 2017


commit 1e70f029082ffc00aee4bf05e47665f65b5f7de8
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue May 16 10:00:21 2017 -0700

    Proposal 140 parameters (consensus diffs)
    
    Just adding the parameters from...
    
      https://gitweb.torproject.org/torspec.git/commit/?id=1e48c77
    
    Consensus diffs are a neat addition and we might add it to our remote module at
    some point, but gonna wait for it to have a use case for python users.
---
 stem/descriptor/networkstatus.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py
index 1a155cd..a48d838 100644
--- a/stem/descriptor/networkstatus.py
+++ b/stem/descriptor/networkstatus.py
@@ -159,6 +159,8 @@ DEFAULT_PARAMS = {
   'UseOptimisticData': 1,
   'Support022HiddenServices': 1,
   'usecreatefast': 1,
+  'max-consensuses-age-to-cache-for-diff': 72,
+  'try-diff-for-consensus-newer-than': 72,
 }
 
 # KeyCertificate fields, tuple is of the form...
@@ -206,6 +208,8 @@ PARAM_RANGE = {
   'NumNTorsPerTAP': (1, 100000),
   'AllowNonearlyExtend': (0, 1),
   'AuthDirNumSRVAgreements': (1, MAX_PARAM),
+  'max-consensuses-age-to-cache-for-diff': (0, 8192),
+  'try-diff-for-consensus-newer-than': (0, 8192),
 }
 
 AUTHORITY_HEADER = (





More information about the tor-commits mailing list