mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
415a841378
We were only using it when smartlist_choose_node_by_bandwidth_weights failed. But that function could only fail in the presence of buggy/ancient authorities or in the absence of a consensus. Either way, it's better to use sensible defaults and a nicer algorithm.
10 lines
551 B
Plaintext
10 lines
551 B
Plaintext
o Code simplification and refactoring:
|
|
|
|
- Remove our old, non-weighted bandwidth-based node selection code.
|
|
Previously, we used it as a fallback when we couldn't perform
|
|
weighted bandwidth-based node selection. But that would only
|
|
happen in the cases where we had no consensus, or when we had a
|
|
consensus generated by buggy or ancient directory authorities. In
|
|
either case, it's better to use the more modern, better maintained
|
|
algorithm, with reasonable defaults for the weights. Closes
|
|
ticket 13126. |