[tor-commits] [stem/master] Add couple new consensus parameters

atagar at torproject.org atagar at torproject.org
Sat Feb 17 01:40:33 UTC 2018


commit 4a8cbbccd6703725eaeb02f9e0138abbd09848bb
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri Feb 16 17:39:36 2018 -0800

    Add couple new consensus parameters
    
    Couple new parameters in the spec. The default of one was changed in a followup
    commit...
    
      https://gitweb.torproject.org/torspec.git/commit/?id=b9700af
---
 stem/descriptor/networkstatus.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py
index 5de91835..2c1817cb 100644
--- a/stem/descriptor/networkstatus.py
+++ b/stem/descriptor/networkstatus.py
@@ -160,6 +160,8 @@ DEFAULT_PARAMS = {
   'cbttestfreq': 60,
   'cbtmintimeout': 2000,
   'cbtinitialtimeout': 60000,
+  'cbtlearntimeout': 180,
+  'cbtmaxopencircs': 10,
   'UseOptimisticData': 1,
   'Support022HiddenServices': 1,
   'usecreatefast': 1,
@@ -204,6 +206,8 @@ PARAM_RANGE = {
   'cbtclosequantile': (MIN_PARAM, 99),
   'cbttestfreq': (1, MAX_PARAM),
   'cbtmintimeout': (500, MAX_PARAM),
+  'cbtlearntimeout': (10, 60000),
+  'cbtmaxopencircs': (0, 14),
   'UseOptimisticData': (0, 1),
   'Support022HiddenServices': (0, 1),
   'usecreatefast': (0, 1),



More information about the tor-commits mailing list