From 02bb2f596a310bd7a3d55ae749196198caa4f483 Mon Sep 17 00:00:00 2001 From: juga0 Date: Wed, 19 Dec 2018 18:10:49 +0000 Subject: [PATCH] scanner: rename bandwidth to consensus_bandwidth Forgotten when it was renamed in 9e089b72d8abfb2b2a6c2ec9a66cb01d115205a6 --- sbws/core/scanner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py index 80251ec2..39dddbae 100644 --- a/sbws/core/scanner.py +++ b/sbws/core/scanner.py @@ -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 '