electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 1f14894c43ca4193fb07c202f22e421365c50d2d
parent a9fcf2fabf7171354e075f579b7fd6e5965bc6f7
Author: SomberNight <somber.night@protonmail.com>
Date:   Thu, 13 Sep 2018 03:45:21 +0200

network: add server to recent_servers only after checks

Diffstat:
Melectrum/network.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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):