diff --git a/lbry/wallet/manager.py b/lbry/wallet/manager.py index 90f78bffb..3dd99f227 100644 --- a/lbry/wallet/manager.py +++ b/lbry/wallet/manager.py @@ -182,6 +182,7 @@ class WalletManager: ledger_config = { 'auto_connect': True, + 'explicit_servers': [], 'default_servers': config.lbryum_servers, 'known_hubs': config.known_hubs, 'jurisdiction': config.jurisdiction, diff --git a/lbry/wallet/network.py b/lbry/wallet/network.py index 3f5745e16..7367a87e3 100644 --- a/lbry/wallet/network.py +++ b/lbry/wallet/network.py @@ -250,6 +250,7 @@ class Network: n = len(ip_to_hostnames) log.info("%i possible spv servers to try (%i urls in config)", n, len(self.config['explicit_servers'])) pongs = {} + known_hubs = self.known_hubs try: await loop.create_datagram_endpoint(lambda: connection, ('0.0.0.0', 0)) # could raise OSError if it cant bind @@ -257,7 +258,6 @@ class Network: for server in ip_to_hostnames: connection.ping(server) sent_ping_timestamps[server] = perf_counter() - known_hubs = self.known_hubs while len(pongs) < n: (remote, ts), pong = await asyncio.wait_for(pong_responses.get(), timeout - (perf_counter() - start)) latency = ts - start