commit 73eab76e6db4f82dbb3924e3c715996ece47fc80
parent 119b84c365da867a6dcb85877f1d13dcf06c59a4
Author: David Goulet <dgoulet@torproject.org>
Date: Tue, 7 Mar 2023 08:39:48 -0500
Merge branch 'maint-0.4.7'
Diffstat:
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/changes/ticket40753 b/changes/ticket40753
@@ -0,0 +1,5 @@
+ o Minor features (directory authorities):
+ - Directory authorities now include their AuthDirMaxServersPerAddr
+ config option in the consensus parameter section of their vote. Now
+ external tools can better predict how they will behave. Implements
+ ticket 40753.
diff --git 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;