electrum

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

commit cd199390e2d6376cdf9458c4a14906c564beea1c
parent 9e57ae630ba96e6d2c40288d2633aeca8d20764d
Author: Luke Childs <lukechilds123@gmail.com>
Date:   Fri, 17 Apr 2020 02:39:05 +0700

Use non-standard localhost port for server-string fallback (#6087)

* Use non-standard localhost port for server-string fallback

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
Diffstat:
Melectrum/network.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/network.py b/electrum/network.py @@ -285,8 +285,8 @@ class Network(Logger, NetworkRetryManager[ServerAddr]): try: self.default_server = ServerAddr.from_str(self.default_server) except: - self.logger.warning('failed to parse server-string; falling back to localhost.') - self.default_server = ServerAddr.from_str("localhost:50002:s") + self.logger.warning('failed to parse server-string; falling back to localhost:1:s.') + self.default_server = ServerAddr.from_str("localhost:1:s") else: self.default_server = pick_random_server(allowed_protocols=self._allowed_protocols) assert isinstance(self.default_server, ServerAddr), f"invalid type for default_server: {self.default_server!r}"