Commit ca463e5e authored by juga's avatar juga
Browse files

scanner: use consensus_bandwidth when sorting relays

instead of bandwidth.
Forgotten when bandwidth was renamed to consensus_bandwidth in
9e089b72.
parent ac9406a6
......@@ -154,7 +154,8 @@ def _pick_ideal_second_hop(relay, dest, rl, cont, is_exit):
len(new_candidates), min_bw_factor, relay.nickname,
chosen.nickname, chosen.consensus_bandwidth)
return chosen
candidates = sorted(candidates, key=lambda r: r.bandwidth, reverse=True)
candidates = sorted(candidates, key=lambda r: r.consensus_bandwidth,
reverse=True)
chosen = candidates[0]
log.debug(
'Didn\'t find any 2nd hops at least as fast as %s (bw=%s). It\'s '
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment