diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2010-01-29 15:40:40 -0800 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2010-02-22 16:52:11 -0800 |
commit | df1ef2f0f0856af71d92d333bcf2c788c2938703 (patch) | |
tree | deceeb832a6138d652e9e6ef07f4e01a7675466b /src/or/dirvote.c | |
parent | f9d40649fe24590463f6e607c6b4e3c757f3b05f (diff) | |
download | tor-df1ef2f0f0856af71d92d333bcf2c788c2938703.tar.gz tor-df1ef2f0f0856af71d92d333bcf2c788c2938703.zip |
Add parsing+verification for bw weight values.
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r-- | src/or/dirvote.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 360ed87ea2..143c32420f 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -1784,8 +1784,10 @@ networkstatus_compute_consensus(smartlist_t *votes, tor_free(result); return NULL; } - // XXX: Verify balancing parameters here - // networkstatus_verify_bw_weights(c); + // Verify balancing parameters + if (consensus_method >= 9) { + networkstatus_verify_bw_weights(c); + } networkstatus_vote_free(c); } |