electrum

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

commit 1d667fe9327d17a752084ca9c69091ec71617d33
parent da8b24d61af00109d480fe4ee5b73d130a7c1f25
Author: Luke Childs <lukechilds123@gmail.com>
Date:   Tue, 14 Apr 2020 19:15:28 +0700

Hard fail on bad server-string (#6086)

* If server-string can't be parsed, fall back to localhost.

Co-Authored-By: Luke Childs <lukechilds123@gmail.com>

Co-authored-by: ghost43 <somber.night@protonmail.com>
Diffstat:
Melectrum/network.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/network.py b/electrum/network.py @@ -268,8 +268,8 @@ class Network(Logger): try: deserialize_server(self.default_server) except: - self.logger.warning('failed to parse server-string; falling back to random.') - self.default_server = None + self.logger.warning('failed to parse server-string; falling back to localhost.') + self.default_server = "localhost:50002:s" if not self.default_server: self.default_server = pick_random_server()