Browse Source
network: add server to recent_servers only after checks
3.3.3.1
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
3 deletions
-
electrum/network.py
|
|
@ -619,9 +619,6 @@ class Network(PrintError): |
|
|
|
|
|
|
|
@aiosafe |
|
|
|
async def new_interface(self, server): |
|
|
|
# todo: get tip first, then decide which checkpoint to use. |
|
|
|
self.add_recent_server(server) |
|
|
|
|
|
|
|
interface = Interface(self, server, self.config.path, self.proxy) |
|
|
|
timeout = 10 if not self.proxy else 20 |
|
|
|
try: |
|
|
@ -642,6 +639,7 @@ class Network(PrintError): |
|
|
|
if server == self.default_server: |
|
|
|
self.switch_to_interface(server) |
|
|
|
|
|
|
|
self.add_recent_server(server) |
|
|
|
self.notify('interfaces') |
|
|
|
|
|
|
|
def init_headers_file(self): |
|
|
|