aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2023-03-07 08:39:48 -0500
committerDavid Goulet <dgoulet@torproject.org>2023-03-07 08:39:48 -0500
commit73eab76e6db4f82dbb3924e3c715996ece47fc80 (patch)
tree0687948f92645c632328909379d8243987797abd /src/feature/dirauth
parent119b84c365da867a6dcb85877f1d13dcf06c59a4 (diff)
parent36612b9bf8f432ccfc5fc637dd86463b84ab4882 (diff)
downloadtor-73eab76e6db4f82dbb3924e3c715996ece47fc80.tar.gz
tor-73eab76e6db4f82dbb3924e3c715996ece47fc80.zip
Merge branch 'maint-0.4.7'
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r--src/feature/dirauth/dirvote.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index b9f022bebd..77148c8725 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -4894,6 +4894,14 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
smartlist_split_string(v3_out->net_params,
paramline->value, NULL, 0, 0);
}
+
+ /* for transparency and visibility, include our current value of
+ * AuthDirMaxServersPerAddr in our consensus params. Once enough dir
+ * auths do this, external tools should be able to use that value to
+ * help understand which relays are allowed into the consensus. */
+ smartlist_add_asprintf(v3_out->net_params, "AuthDirMaxServersPerAddr=%d",
+ d_options->AuthDirMaxServersPerAddr);
+
smartlist_sort_strings(v3_out->net_params);
}
v3_out->bw_file_headers = bw_file_headers;