From 7ba0ae942638794c4c1e80e0ff3fb9eca514839c Mon Sep 17 00:00:00 2001 From: Matt Traudt Date: Mon, 3 Oct 2016 21:09:25 -0400 Subject: Add consensus weight calculation tests --- src/or/dirvote.c | 2 +- src/or/dirvote.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/or') 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 -- cgit v1.2.3-54-g00ecf