aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorMatt Traudt <sirmatt@ksu.edu>2016-09-06 12:09:13 -0400
committerNick Mathewson <nickm@torproject.org>2016-10-26 16:33:54 -0400
commit909ee0e55fa7f03b8b85bc220ba11d91cb495d06 (patch)
tree0b67050f5ef1fc7159612ee1e2b154db235c02cf /src/or/dirvote.c
parent39375db3dc668f11925a82e6d4cef2beed91d47b (diff)
downloadtor-909ee0e55fa7f03b8b85bc220ba11d91cb495d06.tar.gz
tor-909ee0e55fa7f03b8b85bc220ba11d91cb495d06.zip
Fix default bw weights with new consensus method
See #14881
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c5
1 files changed, 5 insertions, 0 deletions
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. */
{