diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-03 13:30:19 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-03 13:30:19 -0500 |
commit | 415a841378db2489c525ea0c55b169bd2894e992 (patch) | |
tree | 41ac5d362267607502f3e5b99b328e9a8d1b9424 /src/or/or.h | |
parent | a142fc29aff4b47640a1a4f59032e25b7360e847 (diff) | |
download | tor-415a841378db2489c525ea0c55b169bd2894e992.tar.gz tor-415a841378db2489c525ea0c55b169bd2894e992.zip |
Remove smartlist_choose_node_by_bandwidth()
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.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 6170c2119c..a681def37c 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -5006,7 +5006,7 @@ typedef enum was_router_added_t { ROUTER_NOT_IN_CONSENSUS_OR_NETWORKSTATUS = -4, ROUTER_AUTHDIR_REJECTS = -5, ROUTER_WAS_NOT_WANTED = -6, - ROUTER_WAS_TOO_OLD = -7, + ROUTER_WAS_TOO_OLD = -7, /* note contrast with 'NOT_NEW' */ } was_router_added_t; /********************************* routerparse.c ************************/ |