summaryrefslogtreecommitdiff
path: root/src/feature/dirauth/voteflags.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-19 09:51:11 -0500
committerNick Mathewson <nickm@torproject.org>2019-12-19 09:51:11 -0500
commitbe9bc5981f21a73508e32207fd197b513a6f01be (patch)
tree5fbfcc8772ac42da06b0edc930d7a3b984326fe4 /src/feature/dirauth/voteflags.c
parent0c7fd8312341b349f93e97c915234b18d0d014ca (diff)
downloadtor-be9bc5981f21a73508e32207fd197b513a6f01be.tar.gz
tor-be9bc5981f21a73508e32207fd197b513a6f01be.zip
Move MinMeasuredBWsForAuthToIgnoreAdvertised to dirauth module.
Diffstat (limited to 'src/feature/dirauth/voteflags.c')
-rw-r--r--src/feature/dirauth/voteflags.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/feature/dirauth/voteflags.c b/src/feature/dirauth/voteflags.c
index d0bc30d4c9..97cb2eb726 100644
--- a/src/feature/dirauth/voteflags.c
+++ b/src/feature/dirauth/voteflags.c
@@ -244,11 +244,12 @@ dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil)
const smartlist_t *nodelist;
time_t now = time(NULL);
const or_options_t *options = get_options();
+ const dirauth_options_t *dirauth_options = dirauth_get_options();
/* Require mbw? */
int require_mbw =
(dirserv_get_last_n_measured_bws() >
- options->MinMeasuredBWsForAuthToIgnoreAdvertised) ? 1 : 0;
+ dirauth_options->MinMeasuredBWsForAuthToIgnoreAdvertised) ? 1 : 0;
/* initialize these all here, in case there are no routers */
stable_uptime = 0;
@@ -432,7 +433,7 @@ dirserv_get_flag_thresholds_line(void)
{
char *result=NULL;
const int measured_threshold =
- get_options()->MinMeasuredBWsForAuthToIgnoreAdvertised;
+ dirauth_get_options()->MinMeasuredBWsForAuthToIgnoreAdvertised;
const int enough_measured_bw =
dirserv_get_last_n_measured_bws() > measured_threshold;