diff options
author | Matt Traudt <sirmatt@ksu.edu> | 2016-10-03 21:09:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-10-26 16:37:16 -0400 |
commit | 7ba0ae942638794c4c1e80e0ff3fb9eca514839c (patch) | |
tree | 6d3c855e5d12fc4a340cdc1a020a221859062d8f /src/or | |
parent | 909ee0e55fa7f03b8b85bc220ba11d91cb495d06 (diff) | |
download | tor-7ba0ae942638794c4c1e80e0ff3fb9eca514839c.tar.gz tor-7ba0ae942638794c4c1e80e0ff3fb9eca514839c.zip |
Add consensus weight calculation tests
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dirvote.c | 2 | ||||
-rw-r--r-- | src/or/dirvote.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 4a955e35de..3d23119e51 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -913,7 +913,7 @@ networkstatus_check_weights(int64_t Wgg, int64_t Wgd, int64_t Wmg, * * It returns true if weights could be computed, false otherwise. */ -static int +int networkstatus_compute_bw_weights_v10(smartlist_t *chunks, int64_t G, int64_t M, int64_t E, int64_t D, int64_t T, int64_t weight_scale) diff --git a/src/or/dirvote.h b/src/or/dirvote.h index 334734654a..ac7db69db2 100644 --- a/src/or/dirvote.h +++ b/src/or/dirvote.h @@ -238,6 +238,10 @@ STATIC smartlist_t *dirvote_compute_params(smartlist_t *votes, int method, int total_authorities); STATIC char *compute_consensus_package_lines(smartlist_t *votes); STATIC char *make_consensus_method_list(int low, int high, const char *sep); +STATIC int +networkstatus_compute_bw_weights_v10(smartlist_t *chunks, int64_t G, + int64_t M, int64_t E, int64_t D, + int64_t T, int64_t weight_scale); #endif #endif |