Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

relaylist: remove assertions that fail measurement #317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sbws/core/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down