From 1f14894c43ca4193fb07c202f22e421365c50d2d Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 13 Sep 2018 03:45:21 +0200 Subject: [PATCH] network: add server to recent_servers only after checks --- electrum/network.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/electrum/network.py b/electrum/network.py index ab37ae950..9fc479794 100644 --- a/electrum/network.py +++ b/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):