electrum

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

commit caa68e2fe81bd5d9d068393b220db02c5e0ba621
parent 77287e0fc7d9b4783c820543b3bf1910c47189d3
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 16 Sep 2020 17:38:20 +0200

(trivial) config.get_netaddress: use NetAddress.from_string

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

diff --git a/electrum/simple_config.py b/electrum/simple_config.py @@ -608,8 +608,7 @@ class SimpleConfig(Logger): text = self.get(key) if text: try: - host, port = text.split(':') - return NetAddress(host, port) + return NetAddress.from_string(text) except: pass