tor/src
Jim Newsome 4fc43ebdee In router_is_active, don't require non-zero bandwidthcapacity
This check was originally added in 962765a3, with the intent of
preventing relays with 0 measured bandwidth from being listed in the
consensus (part of fixing #13000).

Currently, that decision and other relevant places effectively use
`dirserv_get_credible_bandwidth_kb`, which prefers bwauth-measured
bandwidth over the self-reported `bandwidthcapacity`, making this check
mostly redundant.

i.e. this change should only affect behavior when the relay has uploaded
a descriptor with `bandwidthcapacity=0` *and* we have a non-zero
measured bandwidth, in which case we'll still trust the measured
bandwidth. This is what we want when bootstrapping a network (e.g. for
testing), since it allows us to initialize bandwidths using a bandwidth
authority file.

A relay can still cause `router_is_active` to return false by setting
the hibernate flag.

Also see discussion in #40917.

Fixes #40917.
2024-03-07 12:39:40 -06:00
..
app Merge branch 'maint-0.4.8' 2023-12-08 13:45:36 -05:00
config Merge branch 'maint-0.4.8' 2023-12-08 13:45:36 -05:00
core Merge branch 'bug40911' into 'main' 2024-02-08 19:41:22 +00:00
ext equix: Disable huge page support by default 2023-08-28 10:11:00 -07:00
feature In router_is_active, don't require non-zero bandwidthcapacity 2024-03-07 12:39:40 -06:00
lib make read_file_to_str_until_eof doc more explicit 2024-02-18 12:44:45 +01:00
test Merge branch 'maint-0.4.8' 2024-02-28 16:52:56 +00:00
tools Remove broken MSVC support 2022-04-27 23:09:44 -04:00
trunnel hs_pow: swap out some comments 2023-05-10 07:41:37 -07:00
arch_goals.md Document high-level architecture goals 2019-12-10 16:47:38 -06:00
include.am Remove broken MSVC support 2022-04-27 23:09:44 -04:00
mainpage.md Move description of ext contents into an md file. 2020-07-02 13:46:25 -04:00