diff options
author | David Goulet <dgoulet@torproject.org> | 2023-03-07 08:39:48 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2023-03-07 08:39:48 -0500 |
commit | 322c1ed8fb967e9c8983ac770fe9f5083a816c7f (patch) | |
tree | 76f9b72c94e365f96c1170a00176f694a678fdb7 | |
parent | 0b38e2e75a96bb84317cf0d9ff9ba879b17b5ff3 (diff) | |
parent | 36612b9bf8f432ccfc5fc637dd86463b84ab4882 (diff) | |
download | tor-322c1ed8fb967e9c8983ac770fe9f5083a816c7f.tar.gz tor-322c1ed8fb967e9c8983ac770fe9f5083a816c7f.zip |
Merge branch 'maint-0.4.7' into release-0.4.7
-rw-r--r-- | changes/ticket40753 | 5 | ||||
-rw-r--r-- | src/feature/dirauth/dirvote.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/changes/ticket40753 b/changes/ticket40753 new file mode 100644 index 0000000000..c5dc76b006 --- /dev/null +++ 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 index 1bb4fd7de1..0591125d51 100644 --- a/src/feature/dirauth/dirvote.c +++ b/src/feature/dirauth/dirvote.c @@ -4878,6 +4878,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; |