From 909ee0e55fa7f03b8b85bc220ba11d91cb495d06 Mon Sep 17 00:00:00 2001 From: Matt Traudt Date: Tue, 6 Sep 2016 12:09:13 -0400 Subject: Fix default bw weights with new consensus method See #14881 --- src/or/dirvote.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/or/dirvote.c') diff --git a/src/or/dirvote.c b/src/or/dirvote.c index fe664698bc..4a955e35de 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -1367,6 +1367,11 @@ networkstatus_compute_consensus(smartlist_t *votes, consensus_method = MAX_SUPPORTED_CONSENSUS_METHOD; } + if (consensus_method >= MIN_METHOD_FOR_INIT_BW_WEIGHTS_ONE) { + G = M = E = D = 1; + T = 4; + } + /* Compute medians of time-related things, and figure out how many * routers we might need to talk about. */ { -- cgit v1.2.3-54-g00ecf